08-01-2022 08:39 AM
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.
08-01-2022 09:08 AM - edited 08-01-2022 09:10 AM
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.
08-01-2022 10:10 AM
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.