LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

add a shift to graph

Dear all,

I am writing a program where i want to add a shift to the Plot.

I have a Graph whose Time Axis is from 0 to 100.

I want the Graph to start displayng from point 1, i.e adding a shift of 1 to the plot.

Now next plot i want to display from point 2, i.e adding a shift of 2 to the plot.

 

How can i achieve this ?

 

Thanks,

Ritesh

0 Kudos
Message 1 of 3
(3,568 Views)

Hi Ritesh,

you can add an array of "NaN" at the beginning of your array of values to shift it.

 

Mike

0 Kudos
Message 2 of 3
(3,553 Views)

using a Waveform graph you can manipulate the Xo , dX and the Y data

Xo is the initial x axis value which you are refering to as the Shift you want

dx is the displacement from point to point and finally the Y is the array of Data

this shown below in this example illustrating different approaches using Waveform graphs:

for example, the peice of code inside the blue box is telling us that the plot will start from x= 10 , with step 2 from element to element of the Y data

 

 

Message Edited by MAshraf on 12-18-2008 06:30 AM
Eng. Mohammed Ashraf
Certified LabVIEW Associated Developer
InnoVision Systems Founder, RF Test Development Engineer
www.ivsystems-eg.com
0 Kudos
Message 3 of 3
(3,542 Views)