I'm using LabVIEW and RS 232/serial connections to control a PipeJet manufactured by Biofluidix. Attached is my code, as well as documentation from the company (serial control starts on page 18). I'm using a straight through RS 232 cable to connect the instrument to the serial port at the back of the computer. I already checked, and there's no instrument driver.
Whenever I use NI MAX to see the instrument, it confirms that the instrument is present and usable. However, I am unable to send/receive commands to it. Maybe it's because I can't seem to send both termination characters in NI MAX? (Look a few lines later at termination characters) Whenever I use the attached code to write a "v" command and read the response, I get an error, I believe the code is -1073807339, where the issue occurs in the read VISA command. This makes me think that I'm not sending commands correctly. According to the documentation, the baud rate is 9600, stop bits 1, no parity, and 8 data bits. The only other software issue I can think of is either the way the termination characters are being handled, and/or I need to insert a time delay for the Read command.
The documentation says the termination characters are CR LF, so in my code I wired the termination character as "False" for the Configure Serial Port Node, and for VISA Write I am instead using Concatanate String to send "v" as well as the End of Line constant together to Write. The only issue arises with the read command; simply opening/closing the instrument doesn't seem to contain errors.
Tomorrow at work, I will try debugging this further with the Basic Serial Read and Write vi and will report on my results. Any ideas?