05-27-2010 12:07 PM
Ok you beat me to it.
It looks like your port settings are ok. use a 13 for the term char and remove the 13's (CR constants)
Also check the pump settings: the address (00) and baud rate of the pump must match your code and has to be set from the pump's config menu.
05-27-2010 12:07 PM
Why are you reading back in the number of bytes that you just wrote out? What says that if you write out X bytes in a message, the response is also going to be X bytes?
Also, it is not a good idea to have 3 parallel VISA write read pats for a single VISA resource. How do you know that the read message you get is in response to the message you just wrote. The 3 parallel paths could be stepping on each other.
05-27-2010 12:09 PM
05-27-2010 12:12 PM
05-27-2010 12:13 PM
This should work better. The pump sends CR LF as termination char. The termination char is set to 13. But the LF will still be in the read buffer. What is why I have included a dummy read to empty the buffer

05-27-2010 12:18 PM
05-27-2010 12:32 PM

05-27-2010 12:33 PM
OK that was a lot of information I did not fully understand. I am pretty new to labview can you make it simpler for what i need to do? thanks
05-27-2010 01:08 PM
This is just a guess. Try putting a small delay between the write and the first read inside your loop. Another suggestions is to use the Bytes At Port function before the read. Then connect the number of bytes output from Bytes At Port to the Bytes to Read input on the read function.
05-27-2010 01:51 PM
Did you read my post?
Ravens Fan wrote:Why are you reading back in the number of bytes that you just wrote out? What says that if you write out X bytes in a message, the response is also going to be X bytes?
Also, it is not a good idea to have 3 parallel VISA write read pats for a single VISA resource. How do you know that the read message you get is in response to the message you just wrote. The 3 parallel paths could be stepping on each other.