LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change sampling rate from AI in a DAQ

Hello, 

I've found this code for defining the sampling rate in a DAQ system. However, in my case I would need to change this rate from time to time. How could I do it without changing the sampling rate at every cycle of the loop? Is there any nice way to do it with interruptions or similarly?

0 Kudos
Message 1 of 2
(2,759 Views)

If you want to use single while loop structure of the VI, then you can use the following approach, as on the snippet.

reconfigure task.png

0 Kudos
Message 2 of 2
(2,729 Views)