FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuously do a task in parallel of the sequence with fieldpoint modules

I would like to continuously read values on FP-AI-100 while my sequential program is running. When I put the VI out of the sequence, the value is only read once, at the end of the sequence. I'm using Fieldpoint devices and can send my program to anyone could help me.
0 Kudos
Message 1 of 5
(4,195 Views)
Franck,

If you want to do the two tasks simulataneously, in parallel operations, then each task (reading the FP-AI-100 and the sequence operation) should each be in a parallel while loop. For examples of this programming technique, please look under the ..labview 6\examples\fieldpoint directory at the demobox.vi example.

Regards,
Aaron
LabVIEW Champion, CLA, CPI
0 Kudos
Message 2 of 5
(4,195 Views)
I can't test demobox.vi but I made 2 parallel while loops ; the first one execute then the second, but never both at the same time... I join my program if you want to look at ; (step five of the sequence)
Download All
0 Kudos
Message 3 of 5
(4,195 Views)
Franck,

I have looked at your VI and there are numerous programming errors. The primary one effecting you is that you have a data-flow dependency between the two loops. Specifically, the two Booleans that exit the first loop and enter the second loop prevent the second loop from starting until the first loop has stopped.

Also, note that most if not all of your while loops are unnecessary since you are wiring a true to a loop that stops on true and a false to a loop that stops on false so each loop only executes a single time and does not even need to be there.

Regards,
Aaron
LabVIEW Champion, CLA, CPI
0 Kudos
Message 4 of 5
(4,195 Views)
Aaron,
Thank you very much for your help.

Best Regards, Franck.
0 Kudos
Message 5 of 5
(4,195 Views)