LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change X-axis scale in real time mode

Hi.

 

We're having a problem determing the X-scale on a chart. The chart shows a sine-wave in real time scale, with about 1 second or so on the graph. How can we change this to 10 or 30 seconds? Which property node should we use for this, when the chart uses real time scale?

 

Thanks for your help!

___________________________________
Is my avatar the dog from the fraggle rock?
0 Kudos
Message 1 of 13
(7,582 Views)

Hi,

 

for charts: set proper history length and choose autoscale for x axis...

 

What is a "real time scale"? Do you just mean to display x-axis formatted for time display?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 13
(7,579 Views)

The chart uses X-axis with the exact date and time from the computer - T0.

 

If we change the chart history length and then "autoscale X-axis", nothing changes.

Do you know any property nodes that will can change the lenght of the X-axis, when it shows the exact time?

___________________________________
Is my avatar the dog from the fraggle rock?
0 Kudos
Message 3 of 13
(7,575 Views)

Added two pictures that shows the problem.

___________________________________
Is my avatar the dog from the fraggle rock?
Download All
0 Kudos
Message 4 of 13
(7,574 Views)

Hi,

 

you don't need to set T0 constantly. The x axis range is settable: simply switch off autoscaling and set the needed range (either manually or by property nodes). Then this range will not change with new data arriving!

 

Next time please attach a (simplified) VI instead of undebuggable pictures...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 13
(7,567 Views)

The VI is quite large, with lots of subVI's, so adding it here, might be problematic. But it's added now. All the charts should use absolute time, and be scaled in for example 10 or 30 seconds.

 

We have tried using property nodes, with "X scale - max/min" and "scale fit", but the problem is that the X-axis is in absolute time.

Eventhough we remove "autoscale X-axis", it's not possible to type the time manually - it just switches back.

 

Thanks a lot for your help.

___________________________________
Is my avatar the dog from the fraggle rock?
0 Kudos
Message 6 of 13
(7,563 Views)

An older version so you'll be able to open it Smiley Happy

___________________________________
Is my avatar the dog from the fraggle rock?
0 Kudos
Message 7 of 13
(7,562 Views)

Hi,

I have the same problem with changing the x aix period. It only shows 1 second on the chart and backwards. Did you figure out how to change to longer period?

 

Thanks,

Jingjing

0 Kudos
Message 8 of 13
(6,703 Views)

Yes we solved it back in 2011, but I don't remember how. Probably using property nodes.

___________________________________
Is my avatar the dog from the fraggle rock?
0 Kudos
Message 9 of 13
(6,699 Views)

thanks for the quick reply!

I am new to labview and we are using limited edition because we haven't decided to buy windows or labview. I am wondering if the property nodes are in the full edition? (I didn't find the property nodes for x axis)

0 Kudos
Message 10 of 13
(6,690 Views)