Hi,
I'm trying to read data on the serial port from an Orion 720A pH meter. It's connected fine (I can talk to it with hyperterminal and get data back).
I've followed the Basic Serial Read example as well as a couple of others, but the output I get seems weird. I'm sure I'm just missing something.
What I need to do is to send it 2 commands (REM and PR) to get it into remote mode and request a printout. The vi is correctly sending these commands (meter flashes "Printing").
Then, typically, the readout simply shows me those commands back, but not the printout. I used an example that waited for a set number of bits, but the number I got was variable. I had the best luck with a loop that just kept reading from the port again and again... occasionally I would see the data I was looking for.
One thing that really puzzles me: I have a property node "Bytes at Port" to see how many bytes are waiting. I then pass this value to the VISA Read vi... this value is typically around 128, but the VISA Read reports that it read ~6 bytes (REM PR).
I'd greatly appreciate any help.
thanks,
mike