LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Peak detector error

Hi guys,

 

I'm trying to finish a VI here for one of my collegues. I'm trying to detect peaks in a signal that is sampled at 100Hz.

Files differ in size, but is always plotted from a 1D array.

 

At the first time I run the program, I'm always getting the same error:

 

"Error -20013 occurred at NI_MAPro.lvlib:Peak Detector no State.vi

Possible reason(s)

 

Analysis: The width must meet: 0 < width < samples."

 

If I run the same file a second time, i'm not getting this error.

 

What would you advice me to do? Set a single fixed value for loop #0 at like half way the total amount of samples?

 

Or would you suggest another alternative?

0 Kudos
Message 1 of 7
(4,309 Views)

You could also use a case statement to not do anything the first time through the loop.  Loop counter would be zero first time through, so use the =0 comparison triangle and have the true case be blank and the false case be the process.

0 Kudos
Message 2 of 7
(4,294 Views)
How exactly do you have the Peak Detector VI wired up, and how are you passing the data into it? Are you passing in the whole array, or are you passing the data in blocks?
0 Kudos
Message 3 of 7
(4,283 Views)

As the programm is getting to massive to attach to this forum, i attached a rough layout in this message.

 

The main idea is that the user can measure 3/4 different devices (seperate or all together) in the following steps:

* measurement

* set filters/offsets/data analyses

* Select data to be analysed from the FILTERED data

* Analyse the signal and check the results

* Restart the program, or stop the program (both with export/saving option at the end)

 

Hope this helps

0 Kudos
Message 4 of 7
(4,273 Views)
can i use this programm for ecg peak detector?
0 Kudos
Message 5 of 7
(4,257 Views)

marp84 wrote:
can i use this programm for ecg peak detector?

 

Try this program, which is an example in LabVIEW already. Might be helpfull to have a look and see what you can use.

The program that i'm writing however, is to specific I'm afraid.

 

Cheers

0 Kudos
Message 6 of 7
(4,249 Views)

MrHond:

 

Your attached VIs make no sense to me.Would you please attach a simple VI with which I can reproduce the problems you reported? The most convinient way to do is to store your data acquired by DAQ device with constant and save the constant array in your VI. 

 

 

 

 

帖子被pine在 11-03-2008 05:23 PM
时编辑过了
0 Kudos
Message 7 of 7
(4,227 Views)