03-06-2009 01:44 AM
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 ..
03-06-2009 01:58 AM
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
03-06-2009 06:14 AM
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
03-06-2009 06:44 AM
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
03-06-2009 07:40 AM
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!03-06-2009 10:15 AM
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.
03-06-2009 10:24 AM
03-09-2009 02:09 AM
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.
03-09-2009 03:16 PM
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.