LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Samples to seconds on x axis

 Hey all,

I have a very common problem. I want to display my X axis of my chart in terms of seconds. I have tried all ways of trying to format it using absolute time or using the property node of the chart and setting the Xscale format by wiring  it to Get Current /Time Date in seconds (through a 'to double' data converter) . Now this works as long as my loop runs on a delay of 1 second. However, my data acquisition needs to plot all samples that I take. So now how can I make my X axis in terms of seconds without the putting delay in the loop... (chart is required)...




0 Kudos
Message 1 of 6
(4,278 Views)
Hi Khanjan246
why don´t you use a graph?
Mike
0 Kudos
Message 2 of 6
(4,268 Views)

If you present your data to the chart as a waveform data type where the "to" of the WF is correct

AND

you make sure the "Ignore attributes" is NOT set for the chart

Then you should be able to plot you data either using absolute time or as relative.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 6
(4,264 Views)
I need to plot my data continuously as and when it is acquired and so cant use a graph because as far as I know graph cannot be used to plot the data continuously during run time. If I am wrong please enlighten me. I wish to plot two data variables continuously during run time which are acquired very fast and hence plotted as samples. I want to change the scale to seconds of my chart which acquires the samples continuously.
0 Kudos
Message 4 of 6
(4,245 Views)
If you know the time elapsed between each sample (dt), you can use the property node Xscale.Multiplier to convert samples into seconds wiring "dt" to it.
CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 5 of 6
(4,238 Views)
    Thanks ... The problem got solved... I wired dt into Xscale.Multiplier... And now I have seconds on the X axis....

    Thanks
0 Kudos
Message 6 of 6
(4,196 Views)