03-23-2005 11:15 AM
03-23-2005 10:20 PM
Even simpler : just put a boolean false on the "enable termination char" input on the VISA Configure serial port vi ! $OA is the ASCII equivalent of LineFeed... Desynchronization could occur if there is any random noise during the data transmission. You should never suppose that the transmission is "perfect", and always keep a way of maintaining synchrony. May be the 240 data are not sent as a continuous stream, but with a small delay between the series of 6 bytes ? Such a delay could be tracked as a mean to maintain synchrony. Another method is to check the correctness of the data. Since you know the possible value range of your readings, you could check if the series of 3 readings is correct, and if not, try to re-allign the data by shifting bytes until the readings seem correct again.
@Fonsi wrote:
1- If you look at the capture, In the bytes read, one of the readings is 0A, always when get bad readings appear only 0A. If i could to remove this byte and the next 5 bytes the data will be perfect!!.
Two solutions :
2-Sencod error is, i cant use this data until pass 240 readings. I would like to use this data each reading. For that i need remove the 'case structure', and put while loop or another structure. But i'm not able to get it.
03-24-2005 08:07 AM
03-24-2005 08:44 AM
03-25-2005 05:47 AM - edited 03-25-2005 05:47 AM
Message Edited by chilly charly on 03-25-2005 12:47 PM
03-28-2005 05:59 AM
03-28-2005 07:11 PM - edited 03-28-2005 07:11 PM
Message Edited by chilly charly on 03-29-2005 02:12 AM
03-28-2005 07:39 PM - edited 03-28-2005 07:39 PM
Message Edited by chilly charly on 03-29-2005 02:40 AM
03-29-2005 02:57 AM
03-29-2005 04:33 AM
Fonsi wrote:It runs, but why it doesnt stop?. With low timeout the vi should stop... but it continues running... how i can stop it?. i suppose exist any option to stop the vi.