LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data acquisition in a while loop

HI!
 
I have two versions of my program. The first program has the data-acquisition in the while loop, also the "start task" and "clear task" vi!
In the second program there are the "start task" and "clear task" outside of the loop.
When i start each program and compare dates, there are two different dates. I think there*s no difference in the acquisition.
Why are there two several dates???
 
Could somebody help me, please???
 
Best regards,
 
Peter

Labview 7.1 on Windows 2000
0 Kudos
Message 1 of 5
(2,750 Views)
If by different dates, you mean how fast each program can acquire, then doing a start and stop task each time is going to be much slower. You should have your start task outside the main while loop so that it executes first. Do the same thing with the stop task so that it and the clear task it done when the main while loop is done. Combine all of your digital lines into a single task and then do a write on a specific channel.
0 Kudos
Message 2 of 5
(2,734 Views)
HI!
 
Do you mean the main while loop or the while loop in the case structure????
 
 
Best regards,
 
Peter
Labview 7.1 on Windows 2000
0 Kudos
Message 3 of 5
(2,719 Views)
I meant the main. What you want to avoid is multiple instances of Create/Start/Stop/Clear Taks whenever you can.
0 Kudos
Message 4 of 5
(2,710 Views)

HI Dennis Knutson!

Thank you for your help!

Best regards,

 

PETER

Labview 7.1 on Windows 2000
0 Kudos
Message 5 of 5
(2,706 Views)