10-31-2008 03:34 PM
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?
10-31-2008 06:16 PM
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.
10-31-2008 11:17 PM
11-01-2008 05:42 AM
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
11-02-2008 12:45 AM
11-02-2008 05:37 AM
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
11-03-2008 03:22 AM - edited 11-03-2008 03:23 AM
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.