Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset time using DAQmx

Hello,

 

I use this NI-example vi (ContAcqu&GraphVoltageIntClk.vi) shown below to acquire data with the DAQmx driver. Even if I stop and restart the task, the given time starts at the latest value. Does anyone know how I could reset the time before each measure?

 

Ninjatovitch

 

 

 

 

 

0 Kudos
Message 1 of 3
(4,002 Views)

Hi Ninjatovitch,

 

what do you mean with the time starts at the last value? You read an analog waveform which includes timing information like t0=current time and dt=Samples to Read/Sample Rate

 

In this VI, the start value of the X-Axis (Time Axis) is always the current time. You can manually reset the graph with the invoke node "Reinitialize To Default Method" to clear the graph.

 

Hope this helps.

Cheggers

Sascha
0 Kudos
Message 2 of 3
(3,984 Views)

Hi cheggers,

 

Thank you for your help. I could change the "absolute time" to the "scientific time" type in the graph "Properties".

 

Unfortunately, selecting a "Reinitialize to Default method" with an "invoke node" inside a case structure only allowed me to stop the sequence of the graph but not to reset the time.

 

Regards,

 

Ninjatovitch

0 Kudos
Message 3 of 3
(3,974 Views)