ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change x value

I get 400 samples ... with different values........ To change them in the amplitude is now problem but..
 
time based it isn't possible, i try to move it to 1500 (now 0) and stretch is zo it's not from 0 til 400 but from 1500 til 2000?
 
 
I've tried alot from the signal processing pallete but it all changes the amplitude and not the x...
 
Who can help??
0 Kudos
Message 1 of 7
(3,634 Views)

hi martin,

      Are you plotting data on a Graph or Chart?  How about attaching a simple VI along with some data.Smiley Wink

Cheers! 

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 2 of 7
(3,612 Views)

 Okeej,

The attached vi reads the trace date that is in file moi (witch is also attached)...

What i want to do is that the trace starts at 150000 (khz) and stops at 110(MHz) instead of starting at 0 and stopping at 400....

Download All
0 Kudos
Message 3 of 7
(3,610 Views)
Hi Marten,

it seems to me you only saved the y-values of your data in the moi-file.
To show the correct x-scale you have to provide x- and y-values! So save your data as 2d-array and build up an xy-graph from your data.
See the example to learn about xy-graphs!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(3,570 Views)

At the very least, you have to save the start frequency and increment in the data file along with the Y data. When you read the start and increment from the file, then you can write these to the a graph's offset and multiplier with a property node.

Saving the x axis as an array will also work as Gerd mentioned.

Message Edited by Dennis Knutson on 03-02-2007 07:44 AM

0 Kudos
Message 5 of 7
(3,566 Views)
Well, a waveform always has dt as X-axis, and you want Hz. Assuming that your file has no useful timestamps (currently its t0=0 and dt=1), it seems only the Y array is good data.
 
(You are probably aware that 150000kHz is larger than 110MHz. I assume you meant 150000Hz. Right?)
 
Just strip out your Y array from the waveform and set x0 and dx manually for the display using a property node (x0=150000, dx=110M-15000/(N-1)). Tweak as needed.
 

Of course you now should label the Axis Hz.

Message Edited by altenbach on 03-02-2007 06:51 AM

0 Kudos
Message 6 of 7
(3,561 Views)
Of course you probably noticed that I subtract wrong. Please swap the inputs to the minus. 😉
 

Message Edited by altenbach on 03-02-2007 07:01 AM

Message 7 of 7
(3,553 Views)