LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

x-axis chart

I am having trouble clearing a chart that read in a waveform from a analog daqmxbase read vi. I wired an empty array to the history node of the chart. It clears the the waveform on the chart, but it does not reset x-axis values to zero. It keeps starting from the last run. As of right now, the x-axis starts at 3196366917 if i start another run. I tried wiring the history node as a 2-D empty array, but the history node will only accept a 1-D empty array. Could someone please help me out? Thanks
0 Kudos
Message 1 of 5
(2,815 Views)
The history property will only accept a 1D array because that's the way a chart is built - it only keeps Y values. To reset the scale, you need to use the X-Scale>>Offset & Multiplier>>Offset property. Wire 0 into it.

___________________
Try to take over the world!
Message 2 of 5
(2,792 Views)
I tried using the offset property value node, but it still starts off from the last run. Is there any other way to reset the x-axis to 0? I've attached my code for reference. Thanks
0 Kudos
Message 3 of 5
(2,782 Views)
Your formula express vi generates dynamic data that contains the current timestamp, which is then used by the chart for the time axis. You need to convert it back to a single scalar to loose that extra information.

(see attached modification, LabVIEW 7.0)
Message 4 of 5
(2,773 Views)
Thanks for the help. The modification of the code worked perfectly.
0 Kudos
Message 5 of 5
(2,761 Views)