05-07-2017 07:47 PM
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
05-07-2017 08:44 PM
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.
05-07-2017 09:36 PM
Thanks cbutcher, will try this solution.
Thanks and Regards