string to the instrument the writing to the serial port does not terminate and freezes my VI. Also, the VisaWrite function always produces "return count" equal to 0. Some VISA property node is set differently in Labview 6.1, I guess. Thanks: th@jhu.eduTihomir:
If you never quite got this figured out, you might want to try upgrading to NI-VISA 3.0.1. We fixed a handful of Serial problems, and I've copied a snippet from the readme below. And while it's not captured below, I remembered we fixed some other DTR/DSR problem as well.
Also, don't forget about NI Spy. It can help pinpoint exactly which call is failing.
Dan Mondrik
National Instruments
----------------------------
For a Serial INSTR resource, viOpen will now open a port if the process that had been using that port exited ungracefully (such as with Ctrl-C). The previous behavior had been that viOpen would return VI_ERROR_RSRC_BUSY.
For a Serial INSTR resource, multiple sessions to the same port caused weird behavior if you tried to bo
th write and read data simultaneously. This has been fixed.
For a Serial INSTR resource, if you enabled RTS/CTS flow control and then manually tried to set the state of the RTS line, some operating systems would generate VI_ERROR_NSUP_ATTR while others would return VI_SUCCESS but not actually modify the state of the line. Neither of these behaviours was correct. Now NI-VISA will return VI_ERROR_INV_SETUP in this case on all operating systems.
For a Serial INSTR resource, the RS-485 wire mode attribute now works properly on Windows XP/2000.
For a Serial INSTR resource, if a parity or framing error occurred, NI-VISA would not return the correct error condition. This has been fixed.