12-07-2012 06:01 PM
hi all
can you help fixing this error please ?
error 42201 the input signal is empty .( i am having this error while connecting the build array function to the detrend function .
12-07-2012 10:05 PM
What kind of array are you building? Please post code.
12-08-2012 06:24 AM
Bill here is what i am doing
thank you .
12-08-2012 08:22 AM
Bill David,
I can see several possibilities for an empty array:
1. You initialize the shift register with an empty array, so if nothing ever gets added to the array it will remain empty.
2. Part of the image is cut off. If an empty string is passed (although you may be testing for this in the cut off portion), the array will be empty.
3. If a non-empty strnig is passed but its format or contents does not translate to a non-empty array of strings, the output of the for loop will be an empty array.
Some additional possiblities could produce non-empty arrays with all zeros, NaN, or Infinities, but those would generate different errors.
Try putting indicators on the data string, on the string array, and on the numeric array to see what you are getting.
Lynn
12-08-2012 08:42 AM
Johnsold .
Thank you for the reply. yeah i've just solved the issue . it was because the visa read was really reading what is in the buffer but the data was not as expected and sent from the microcontroller . ( as a result i was having an empty array .... i guess ) dont you think so ?
now everything is fine .
Thank you