10-03-2018 11:42 AM
I just recently got my first NI daq (NI USB-6341), and trying to get use to using daqmx. I'm trying to figure out the best way to run multiple task in one VI. I know I can't run the simultaneously, but it seems like there should be an easy way to go from one task to the other, but I haven't been able to find an example. I modified an example real fast to show what I would like to happen. There has to be an easier way than having each task be in its own loop. That seems like it will make keeping the block diagram clean hard once there are multiple task that need to run.
10-03-2018 01:15 PM
I was able to get it to work by making each task a subvi, and then putting them into a sequence, but I feel like that isn't the best way to do it.
10-03-2018 02:19 PM
If you put them in a sequence, that means "do these sequentially". If you put them one above the other (placement isn't important, just for visual clarity), and have no wires going out of one and into the other, they will run in parallel, which is what you want to do!
Bob Schor