LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array problem(urgent)

Halo,Guys...
i got very urgent problem seeking ur help now...

1. for example i wannar store the max peak calculated from the amplitude and level measurement into an array which we can use to do calculation....

2. furthermore, Will there be a way to store the changing value in the max peak which is shown in the front panel when i run my program which acquire real time signal from a DAQ?


by the way, i am using LV 7.0 on the Windows Xp system...
seeking ur help now....

thanx a million

Eric
0 Kudos
Message 1 of 8
(2,969 Views)
Hi, I am afraid that I do not quite understand your Q1.
As for Q2, not sure if this code helps, in one way or another.

Regards,
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 8
(2,962 Views)
firstly, find the max peak value of a curve (which similar to the sine wave) which are calculated from the amplitude and level measurement,then store them into an array...
finally, using the array to do the further calculation..
0 Kudos
Message 3 of 8
(2,958 Views)
Hi, hope this will help.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 8
(2,952 Views)
Thanx so much, Mr Koo

i have just tested ur file, i got another two questions...
could u tell how to improve it ...

1. the data is stored manually into the array , but i need it automaticaly, just as i can store the peak values of the sine wave automaticaly into the array

2. the value stored cant be updated, how to modidify it, as it updated itself as First In First out....

thanx a million...

Eric
0 Kudos
Message 5 of 8
(2,944 Views)
Hi, I am really not quite sure of what you wish the code to be, exactly.
Perhaps, you wanna give a simple pseudo code here.

Nevertheless, please see if the attached VI gives you any clue(s).

Cheers!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
Message 6 of 8
(2,926 Views)
thank you,
take for example a sine curve with respect to time. what we actually need is to find the maximum and minimum peaks of a curve, then find the period between the max peak and the next max peak, as well as record the maximum and minimum points of the curve of each period into a array, after which each of the maximum value and its corresponding minimum values are divided and then ln(log base e). (in short, ln(max/min) for each period)

that s all, thanx very much...
0 Kudos
Message 7 of 8
(2,912 Views)
Hi,

From your description, the finding of the maximum and minimum peaks of a curve, then find the period between the max peak and the next max peak will be of part of work. The previously attached VIs should be able to guide you to how to record the maximum and minimum points of the curve of each period into a array. As for each of the maximum value and its corresponding minimum values are divided and then ln(log base e). (in short, ln(max/min) for each period, you should be able to get it done easily using LabVIEW numeric functions etc.

Best regards,
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 8 of 8
(2,901 Views)