Problem with file injector

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
r_teixeir
Posts: 96
Joined: Fri Jul 15, 2016 10:51 am
Has thanked: 24 times
Been thanked: 5 times
Contact:

Problem with file injector

Post 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
Attachments
LogToFile.zip
(2.95 KiB) Downloaded 103 times

chipfryer27
Valued Contributor
Valued Contributor
Posts: 682
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 185 times
Been thanked: 204 times
Contact:

Re: Problem with file injector

Post by chipfryer27 »

Hi

Try the attached

It simulates and logs to file. I've attached the "out" file too.

Regards
Attachments
out.txt
(4.06 KiB) Downloaded 97 times
LogToFile_modified.fcfx
(11.36 KiB) Downloaded 108 times

r_teixeir
Posts: 96
Joined: Fri Jul 15, 2016 10:51 am
Has thanked: 24 times
Been thanked: 5 times
Contact:

Re: Problem with file injector

Post by r_teixeir »

Thanx, What did you do? Ive tried so many things!

Great thanks again

Rod

chipfryer27
Valued Contributor
Valued Contributor
Posts: 682
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 185 times
Been thanked: 204 times
Contact:

Re: Problem with file injector

Post by chipfryer27 »

Hi

You simply forgot to enable the "Data Source" under UART properties. I've often done the same :) If you compare both file versions you will see the changes.

Glad to have been of help,
Regards

r_teixeir
Posts: 96
Joined: Fri Jul 15, 2016 10:51 am
Has thanked: 24 times
Been thanked: 5 times
Contact:

Re: Problem with file injector - Little forward

Post 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
Attachments
EMG_Test.zip
(44.21 KiB) Downloaded 103 times

chipfryer27
Valued Contributor
Valued Contributor
Posts: 682
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 185 times
Been thanked: 204 times
Contact:

Re: Problem with file injector

Post 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

Post Reply