LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change X axis scale of waveform graph dynamically

I need to plot speed v/s time using waveform graph.
Time on x axis.Each cycle lasts 30 secs. So if i have 3 cycles to plot then on the x axis of the waveform graph, i should have 0 to 30 on the time scale for first cycle the 30 to 60 for second cycle.. so on.
but i am not able to change X0, its always at zero. hoew to change dynamically. please help. i am using labview 6.0
0 Kudos
Message 1 of 4
(6,433 Views)
1. You could use waveform chart and use the Property Node for changing X0.
2. You could use Waveform Grpah and actually wire in BOTH X & Y values.
3. You could use the Offset Proprty Node of the waveform graph, as shown in the attached vi.
Hope it helps!
~J5


2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 2 of 4
(6,433 Views)
> I need to plot speed v/s time using waveform graph.
> Time on x axis.Each cycle lasts 30 secs. So if i have 3 cycles to plot
> then on the x axis of the waveform graph, i should have 0 to 30 on the
> time scale for first cycle the 30 to 60 for second cycle.. so on.
> but i am not able to change X0, its always at zero. hoew to change
> dynamically. please help. i am using labview 6.0

There are two sorts of graph datatypes that will work for the data you
are plotting. The oldest is just the cluster of X0, dX, and the Y
array. This items are accessed using normal bundle and unbundle nodes.
You can wire the middle terminal of a bundler with the existing
wire, and easily access any of the elements for replacement.

The waveform datatype was added la
ter and accomplishes many of the same
things as the bundled version. It is accessed with a special waveform
bundler that works much the same way except that the center terminal is
located at the upper left.

Greg McKaskle
Message 3 of 4
(6,433 Views)
Right, that's a better answer. I must have regressed to my LV 5.1 days.


2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 4 of 4
(6,433 Views)