Page 1 of 1
Problem with file injector
Posted: Sat Apr 23, 2022 5:31 pm
by r_teixeir
Hi team, Iam trying the hello word for the file injector, the same code works for the V6 and V7 but for V8 it is not. Any help about would be great.
Thanks
Rod
Re: Problem with file injector
Posted: Sat Apr 23, 2022 10:04 pm
by chipfryer27
Hi
Try the attached
It simulates and logs to file. I've attached the "out" file too.
Regards
Re: Problem with file injector
Posted: Sat Apr 23, 2022 10:41 pm
by r_teixeir
Thanx, What did you do? Ive tried so many things!
Great thanks again
Rod
Re: Problem with file injector
Posted: Sat Apr 23, 2022 10:47 pm
by chipfryer27
Hi
You simply forgot to enable the "Data Source" under UART properties. I've often done the same
![Smile :)](./images/smilies/icon_smile.gif)
If you compare both file versions you will see the changes.
Glad to have been of help,
Regards
Re: Problem with file injector - Little forward
Posted: Sun Apr 24, 2022 2:37 am
by r_teixeir
Hi guys, going a little further on the code related to txt data. I uploaded FFT file hello world and I substitute the analog reading from a Pot by the txt file data from an analog circuit that I am working on it. I was not able to output the FFT data into the text file. I believe this is a nice example to work on which involves analog circuit and Fourier analysis. I am attaching the code as well as the circuit. If anybody can help on how to output data into the text file that would be great. Anyway, I am trying to see if I can get a relation about the enveloping, rectification and Fourier analysis. By the way this is for an EMG (Electromyography) application.
Thanks
Rod
Re: Problem with file injector
Posted: Sun Apr 24, 2022 8:31 am
by chipfryer27
Hi
Sounds an interesting project.
I only have access to FC v8 at present which I don't have the DSP pack for, and in FC v9 I believe they changed the DSP quite a bit so unfortunately I'm probably not best placed to offer much help.
Regards