08-10-2013 07:59 AM
I am trying to receive 2500 bytes via serial port and plot it on a chart, after sending character "S" to the sender device.
I have set the "read count" to 2500 so it is supposed to receive 2500 byte then wait for another "S" but it just receives 101 bytes and then goes to next program iteration. How can I solve this problem?
The VI have been attached.
08-10-2013 10:41 AM
Are you getting TIMEOUT error...??
If so, increase the timeout (from default 10sec), while configuring the VISA...
Also delay function (Wait, set for 1000ms) isn't required, rather you can add same delay between sending command and reading the response.
08-10-2013 12:37 PM
What kind of data are you expecting in return? Is it text base data or purely binary?
You have the termination character enabled by default with the default byte of a linefeed character. If you are getting binary data where you get a byte of value 10, then the VISA read will end early because it received the termination character.