04-22-2008 05:43 PM
04-22-2008 07:56 PM
This might be some chattering signal problem when you have connected the cable. By connecting/disconnecting the cable to/from the device, the device is likely receiving junk characters by chatter noize.
Does your device have any "clear" command that can be sent through the serial port? It can be a "send-break" signal or empty string with Line-Feed (ASCII 0x0A) terminater, Ctrl-C character (ASCII 0x03), etc... Does the device have such command? If the problem is caused by the above reason, clearing the device's serial interface immediately after connecting the cable may fix the problem.
04-22-2008 09:15 PM - edited 04-22-2008 09:16 PM
04-23-2008 05:10 PM
04-23-2008 09:40 PM
You seldom get any kind of an error with a write. A serial instrument could be disconnected and the write will not give an error. The exception is when handshaking is used.
If you are sure that the cable and com settings are correct, you need to verify that you are sending the correct command and that it is properly terminated. First, try using Hyperterminal instead of your LabVIEW program. If that doesn't work, then you can ask the vendor for help. All will have experience with Hyperterminal. Once that is working, try LabVIEW. If you send a termination character such as \n, the string control/constant has to set to '\' Code Display. Right click on it to select this. If you continue to have problems, post your code with the actual commands saved in a control. Do this by going to the Edit menu and selecting 'Make Current Values Default'. After doing this, save the VI and then post it. If you have an electronic copy of the manual or a link to one, provide that as well.