LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Odd behavior of graph

Hi

I'm trying to display the online data in a graph with a fixed origin and a variable end.
The x scale shows time in seconds.
The fixed origin of the x scale is 0. Within the first 15 seconds the data fills out the graph.



When I'm running the attached main.vi the graph is initialized correctly but the x-scale doens't stay fixed on the defined range.
WHY?



Thanks for any help.

Yves


0 Kudos
Message 1 of 4
(2,958 Views)
Hi Yves,

I cannot test your vi as the DAQ.vi is missing...

But maybe you should switch on XAxis-Autoscale for the graph?
If you want to display the same on the graph and the chart you have to collect the data for the graph in an array (using a shift register in the while loop)...

Message Edited by GerdW on 10-25-2007 09:36 AM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(2,943 Views)

Hi Yves,

I don´t understand what you want to do with the Part in front of the While Loop?

Because there you set the X-Offset to a huge negativ value!

You should have a look at the example:

charts.vi in the Example Finder!

Best regards

Alex Rudolph

NI Switzerland

 

Message 3 of 4
(2,917 Views)

Try clicking the "Ignore Attributes" option.

When not checked the charts pick-up the "x" values from the data presented.

Ben

Message Edited by Ben on 10-26-2007 07:29 AM

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