09-08-2008 10:48 AM
what does this error mean?
Analysis: The width must meet: 0 < width < samples.
09-08-2008 11:02 AM
It seems that one of your input paramteres is outside the valid range that the programmer defined. Can you show us some code or at least explain what your program does?
It is not clear if this is a LabVIEW system error or some custom error. Do you have the exact wording of the entire error message
05-07-2010 11:30 AM
I have created a program that detects and records pulses through a Threshold Peak Detector.vi . Everything used to run just fine, up to the moment i tried to play a sound (Play File.vi) when a peak was detected. After that i got the same message...
For me it is:
Error -20013 occurred at an unidentified location Possible reason(s): Analysis: The width must meet: 0 < width < samples.
and after i click "CONTINUE" i get another message:
Error 4823 occurred at Sound Input Read (DBL).vi->NTUA_BERM_v4.v Possible reason(s): LabVIEW: (Hex 0x12D7) A task must be running to perform this operation.
which also only allows to click "CONTINUE". If i re-execute the VI everything runs just fine.
Thank you in advance.
05-07-2010 01:18 PM - edited 05-07-2010 01:22 PM
Hello Stergios,
without any code we cannot tell what happens.
But when you use the Threshold peak detector the 'width' you asked for must meet two criteria:
What might happen is that you send an empty array, such a situation makes it impossible to meet criterium 2.
Based on your question I think you don't connect error wires. I think that's the reason you get error number 2.
Ton
05-08-2010 04:21 AM - edited 05-08-2010 04:23 AM
TCPlomp, here is my VI.
I was trying to find a way around the error all night but no luck... Here it is, i hope anyone can help. t is a PEAK detector/counter, which monitors the microphone for peaks, plays a sound every time a peak is detected and records each count. It is based on the LabVIEW example "Continuous Sound Input". Just tap your microphone to create a countable peak..You should get the error 2-3 seconds after the first count.
Here is the necessary "TEST.vi" and "beep.wav" in a ZIP file.
Thank you for your time and effort.
05-08-2010 07:06 AM
I have seen your error once, the first time a beep was about to be played I first got the error from the peak detector, but then the while loop terminated because of an error in the 'acquire sound' loop.
What basically happened is that the first time of initialization of the output sound, the input card was halted.
Then the input function returned an error and an empty soundset, since you don't check the error before sending the data to the peak detector you get an error as well from there.
Ton
05-09-2010 02:50 AM
05-09-2010 08:02 AM
Here is a low CPU usage version. Sound is somewhat cryptic in Labview so I offer to help. One the error you made was to have extra buffer size for sound input. Now you have 2x buffer size in respect to samples read each time.
Remember that sound files can be quite large so. So preparing the setup by reading all the samples before the loop, must be used with care. But for a small beep it works fine. The wiring is somewhat chaotic but you are free to fix it.
05-09-2010 04:06 PM
05-09-2010 04:23 PM