07-15-2009 04:27 PM - edited 07-15-2009 04:28 PM
I am trying to develop and application that writes data to a board and then reads the response back from the board. I am using VISA read write to do it.
It writes the data just fine. However when I go to read that data out, I get zero bytes at the port (or no data).
Can some one help me with this??
Thanks
07-15-2009 04:34 PM
How do you know that it is writing correctly? If you are using serial, you can send anything you want, have no cable there, have completely mismatched com settings, and you won't get an error. I don't see anything obviously incorrect in your VI except you don't need to configure the port each and every time you want to communicate.
Have you tried using Hyperterminal? Do you have a manual that you can attach or provide a link to?
07-15-2009 08:25 PM
How about putting a time delay after the VISA write? It make take a little bit of time for the instrument to get the message and turn around with a response. Since you are checking for bytes at port immediately after writing the message, it is very likely the bytes at port equals zero.
Look at the Basic Serial Write and Read example in the example finder.