LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timed acquisition

hi,

I WANT TO MAKE A TIMED ACQUISTION, SO HOW CAN I STOP AUTOMATECLY THE ACQUISITION AFTER 5 MIN (FOR EXEMPLE ) OR AFTER A CERTAIN NUMBER OF ACQUIRED POINTS (EX : 5000 PTS OF THE SIGNAL)

thank's
0 Kudos
Message 1 of 3
(2,745 Views)
Place your acquisition routine in a while loop. Control the while loop by OR-ing 2 conditions:

1. Read the elapsed time (can use difference of Tick Count which is initialized before the while loop to another one feeding a Shift Register). The elapsed time will be in ms, so you'll have to do the math for your max duration (5 min = 300 000 ms) Or better, you can use the Get Date / Time string, convert to seconds and do that math (1000 less ;o)

2. Count the number of samples taken and verify if greater than your desired value.

Feed the output or the OR to the conditional terminal (square with red dot). Change it to STOP IF TRUE.

Try it.

JLV

(PS: try lower case letters when writing your question. Thanks)
Message 2 of 3
(2,745 Views)
typo:

Feed the output of the OR to the conditional terminal.
Message 3 of 3
(2,745 Views)