LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple timestamps Waveform chart

Solved!
Go to solution

How do I get more that two or three timestamps along the X-axis of a wavefrom chart?  Idealy I would like to have 5 scale markers on my chart that update with the timestamp that comes in with the data being plotted?

 

Currenly I see a timestamp at the extreme left and right of my chart and every so often I will see a third timestamp move along the x-axis from right to left...

 

Any suggestions?

 

Matt

0 Kudos
Message 1 of 7
(5,764 Views)
Marker_Values.png
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 7
(5,758 Views)
What are the two VI's that you are using inside the while loop?
0 Kudos
Message 3 of 7
(5,751 Views)

I beleive those are sub-VI that let you use a WF graph as if it was a chart (they hold the history).

 

The import thing you are looking for is the property node to set the markers.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 7
(5,742 Views)

So I have tried building the the diagram you mentioned above but I continue to get Error 1055 LabVIEW: Object reference is invalid at the first property node.  Any ideas?

 

timestamp_plot_test.png

0 Kudos
Message 5 of 7
(5,715 Views)
Solution
Accepted by topic author Matt Kniller

Sorry Matt!

 

Between the difference of a XY graph vs a Waveform Chart and throw in a bug with the VI Snippet not handling property nodes correctly, you were bound to have trouble.

 

This code is attached below as LV 2009.

 

Markers.PNG

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 7
(5,704 Views)
Thank you.  That did exactly what I was looking for.  I also like that I am able to control how often I am able to put a new hash mark at the bottom with this method.
Message 7 of 7
(5,687 Views)