LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ assistant, acquiring data from my NI USB -6008 every "N" time

Hi guys.. can someone help me with the logic of the project I want to make.

I want my NI USB 6008 to acquire the voltage every "N" time, meaning I can change the time it will acquire the data.

 

Thanks and Regards everyone, I just need the logic, not the whole code/ block diagram

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

It sounds like what you want is to make modifications to the rate at which data is acquired? If so, you can use the DAQmx Timing VI. However, I don't think this will allow you to make changes during acquisition, so you'll need to stop the task before changing the timing.

 

You could do this with an Event Structure tracking a Value Change event on the 'Rate' control that you create - when the value changes, inside the event structure, stop the task, change the timing, and restart the task.

 

There is a somewhat more complicated example showing the use of an Event Structure inside a While loop (the most common setup) called 'Handling Common User Interface Events' - you can find this using the NI Example Finder under the Help menu in LabVIEW.


GCentral
Message 2 of 3
(2,719 Views)

Thanks cbutcher, will try this solution.

 

Thanks and Regards

0 Kudos
Message 3 of 3
(2,709 Views)