LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph Time As X axis Controlled By Property Node

I am building a vi in which I will be plotting data against the time.  I am using an xy graph along with the xy  chart buffer vi.  The x axis is the current time.  However, the axis will continue to compress as the buffer gets full and the data becomes unreadable.  I want to control the minimum and mzximum time on the x axis so that it constantly updates.  I have successfully done this when I use a difference in the current time and the start time using the property nodes under xscale-range-xminimum and xscale-range-xmaximum, however these property nodes only take a double as an input.

 

Any ideas?

0 Kudos
Message 1 of 4
(3,401 Views)

@Kim_Shrewsbury wrote:

I am building a vi in which I will be plotting data against the time.  I am using an xy graph along with the xy  chart buffer vi.  The x axis is the current time.  However, the axis will continue to compress as the buffer gets full and the data becomes unreadable.  I want to control the minimum and mzximum time on the x axis so that it constantly updates.  I have successfully done this when I use a difference in the current time and the start time using the property nodes under xscale-range-xminimum and xscale-range-xmaximum, however these property nodes only take a double as an input.

 

Any ideas?


Sounds like you know how the scale needs to be manipulated. Are data types the problem? If so, you can convert timestamps to DBL:

timestamp conversion.png

 

0 Kudos
Message 2 of 4
(3,370 Views)

When I feed a double into the property node the plot scale does not behae properly. It seems like this might be because I am wanting time on the x axis scale and I am feeding in a double.

0 Kudos
Message 3 of 4
(3,365 Views)

@Kim_Shrewsbury wrote:

When I feed a double into the property node the plot scale does not behae properly. It seems like this might be because I am wanting time on the x axis scale and I am feeding in a double.


What exactly is the scale doing, and what do you expect it to do?

0 Kudos
Message 4 of 4
(3,358 Views)