LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run 2nd step in program before completing previous step.

I have a system that was originally configured to all run through a WIFI connection. It involved a electromagnet control board activated by a TTL input from a Raspberry PI, and a MCC DAQ board connected to the RPI. In order to get good data, I've had to alter this setup so that the data acquisition is being performed with a Labjack currently connected via USB. 

I need to issue a command for the labjack to collect 5 seconds of data (I can do this). Next I need to communicate with the RPI and tell it to release the magnet. My issue is that I don't know how to move to the second step before the first step is complete. 

0 Kudos
Message 1 of 3
(818 Views)

Please clarify why you posted on LabVIEW board. Are you developing your application in LabVIEW? if so, please attach the VIs that you currently have.

 

Without looking at any code and just conceptually, when you want something to move to the next step only after the previous step completes, you need a way to continuously or periodically check if the previous step is complete and then proceed to the next step.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 3
(808 Views)

LabVIEW is a fully parallel programming language and it seems you want to run certain things in parallel (i.e. start task #2 before task #1 has completed), so this is easily possible. You can run as many things in parallel as you want!

 

All you need is to understand the beauty of dataflow. If task #2 needs to start early, none of it can depend on outputs from task#1 (e.g. even error wires).

 

We can probably give much more specific suggestions once you attach your VI.

Message 3 of 3
(777 Views)