LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

build array 250 values

hello all of you..

i have a little problem and i confuse

i want to fill an array with 250 values 1-D.

when it takes and the last value,then it will enable to do some calculations 

and give me result.

is it some easy way to plot these values as a waveform on XY GRAPH?

and LABVIEW understand these values as a waveform?

thanks a lot ..

 

0 Kudos
Message 1 of 9
(3,304 Views)

Hi thessalon,

you can use a for loop or the initialize array function to get your array. Where do you have problems? Can you explain a bit more?

You have to connect two arrays to the xy graph, one for the x values and one for y. If you use a for loop to create the array then you can use the i terminal to get your x array.

 

Mike

Message 2 of 9
(3,301 Views)

well, i made A/D to a signal and send values to PC via rs232 (25 samples /20ms or 250 samples/0,2sec)

i want to plot ,store, and do some calculations on that signal

to do calculate ,first, i must store 250 values

when i get and the last one,then get result.

that will happen all time.

 i have some problems about plot on XY graph

(on chart works great)

i think labview don't understand it as a waveform.

also i want to pass through low pass filter,at this time i can't.

what can i do 1)when i take 250 samples then get result

 and 2) how i make labview to undesrtand these samples as waveform

after all i will do some analisis on that signal.

thanks a lot

 

0 Kudos
Message 3 of 9
(3,263 Views)

Hi thessalon...,

do you really need a xy graph? You can use a normal graph. In which format do you have your data? Is it a string? How many values do you get from the rs232 deveice at ones? Is it an array as string?

 

Can you show a picture of what you have or your current vi?

 

Mike

Message 4 of 9
(3,256 Views)

i send them printf() as string and i convert on decimal number on labview

i haven't any problem on that

these values represent a sinus signal on waveform chart

but represent nothing on a XY graph

i can't insert this "signal" on filter,don't recognize it as signal.

i wiil post .vi on monday!!

thanks for interesting!
0 Kudos
Message 5 of 9
(3,247 Views)

If you have a 1D array of y-values, you cannot use an XY Graph.

This is because you dont have an array of X's.

 

If your X is just going to be time, if your data points are evenly spaced,

you can just pass your 1D array of values to a "waveform graph" and it should work fine.

Cory K
0 Kudos
Message 6 of 9
(3,233 Views)
And you need to be able to pass the sample rate to the remote pc. Without that, any timing analysis will be meaningless unless you manually enter that on the remote pc.
Message 7 of 9
(3,230 Views)

i made a try to build a waveform , and i think it is work

to see labview a signal as a waveform needs 

2 things ...samples and time...am i wright?

now i can see plot on XY graph,and frequency analisis.

 

0 Kudos
Message 8 of 9
(3,191 Views)

His thessaloniki,

 

Waveforms have 3 inputs that you should be using for this.  You will need the starting time of your waveform, the time between each sample, and the array of samples to build a waveform.  Hopefully this helps.

Stephen Meserve
National Instruments
0 Kudos
Message 9 of 9
(3,168 Views)