LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Daqmx task in one VI

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.

0 Kudos
Message 1 of 3
(1,990 Views)

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.

0 Kudos
Message 2 of 3
(1,968 Views)

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

0 Kudos
Message 3 of 3
(1,956 Views)