10-15-2009 08:21 AM
10-15-2009 08:29 AM
Since you are wiring all of your errors through your VI you will not get a pop up unless you add one to your code see below.
10-15-2009 08:39 AM
10-15-2009 08:44 AM
10-15-2009 08:52 AM
10-15-2009 08:54 AM
10-15-2009 09:00 AM
10-15-2009 09:03 AM
10-15-2009 09:04 AM
10-15-2009 09:17 AM
wb2nvy wrote:
I'm using LV8.5 and VISA CONFIGURE SERIAL PORT.VI, with an error indicator connected, and I expect to see an error displayed when I have NO SERIAL CABLE connected to my pc. Shouldn't this condx generate an error? If not, what can I do to display an error when no cable is connected?
Are you saying that you wan the configure serial port VI to throw an error if you don't have a cable connected to the serial port?
It can't. How would the serial port know whether a cable is connected or not? The VI configures the port which is the actual hardware implementation inside your PC. It doesn't know what is happening beyond then connector on your PC.
You do have some alternatives though. If the device you are going to communicate with puts any voltage on any of the hardware handshaking lines, you could check the status of the hardware handshaking lines and see if they are enabled or not. If they are not, you can throw your own error saying the cable or the device is not connected. Or if the device doesn't do that, you could make your own communication cable that does a loop back on the hardware handshaking lines. If the line is not enabled, then the cable must not be connected. Of course in that case it won't tell you whether the other end of the cable is connected to anything.