LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scaling, preseting and updating a graph/plot

Hello,

I have problem:

I´m getting every 10..20 seconds an new value, and I need to show it on a graph. Normaly no problem. But, the actual measuring position (the values are measured on a running strip) should be the x-axis of the graph/diagram.

E.g. the values 1, 2, 3 are taken at the positions 10m, 36m and 102m.

How do I put it dynamically on a graph?!



Thanks in advance!
0 Kudos
Message 1 of 5
(3,141 Views)
Dear EMG,

it is difficult to give a right answer. It where better you post an example VI.
I think you should look in the property nodes from your graph.
Especialy the properties -> x scale -> offset and multiplier.
Hope this helps,

best regards.

SebastianN
0 Kudos
Message 2 of 5
(3,140 Views)
A waveform chart may help.

See attched zip for example VI and image that shows that a waveform chart will plott data based on the supplied timestampts in "t0".

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 5
(3,140 Views)
Hi Ben,

You are on the right track but I would suggest using an XY Graph instead of a Waveform Chart. An XY Graph is used to plot data that is not necessarily evenly sampled. This will work perfectly for your application. There is a wonderful example of different ways to use the XY Graph on our website at:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EEB556A4E034080020E74861&p_node=DZ53045

Thanks,
Caroline
National Instruments
Thanks,
Caroline Tipton
Data Management Product Manager
National Instruments
0 Kudos
Message 4 of 5
(3,121 Views)
6 of one half dozen of another...

For application that require a regular update of the display, the waveform chart is my preference.

No need to do any explicit buffering behind the scenes,
plus
better performance because you are not passing large data sets around.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 5
(3,114 Views)