LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i plot a reading from my DAQ card against the actual time it was taken?

I'm trying to read a value, e.g. voltage, then plot that against the time and date it was taken, e.g. x = 12:05:30 17/03/03, y = 5 volts. I've tried re-scaling the x-axis in both charts and graphs. There must be an easy way of doing this, but I can't find it!
0 Kudos
Message 1 of 2
(2,424 Views)
If you've acquired a waveform and want to dispaly it with a graph, then you need to use Get Date/Time in Seconds when you start the acquisition and use that as the t0 in your waveform. The sample rate is used to determine dt (1000 scans/sec - dt = .001). Look at the example called Create Waveform example.vi that ships with LabVIEW. There is an example called Real-Time Chart.vi that shows how to use a chart and point by point acquisition. In this case you use the start time and interval and set the chart's Xscale Offset and Multiplier with a property node.
0 Kudos
Message 2 of 2
(2,424 Views)