04-27-2009 08:58 PM
Hello,
I recently purchased a used Instrument Simulator (I.S.) and I cannot get it to function.
When I turn on the power, three LEDs illuminate: Power, Ready, and Listen.
When input any command in VISA test panel, I get the following error.
VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.
After getting this error, I check the serial port settings to make sure they are the same. Windows XP, MAX, and I.S. are all configured to 9600 baud, Hardware flow control, Parity off, 1 stop bit, 8 bits per character.
After checking that, I disconnected the serial cable from the I.S. Then I jumpered the DB9 serial cable terminals 4 to 6, 2 to 3, and 7 to 8. This was done to perform a loopback test as shown here.
http://zone.ni.com/devzone/cda/tut/p/id/3450#2
The result of the loopback test was good. I could send and receive in Hyperterminal, VISA, and the Basic Serial Write and Read.vi
With all that done, I am wondering if I bought a bad Instrument Simulator. Is there something that I am missing or is this thing junk?
Solved! Go to Solution.
04-28-2009 09:18 AM
Hello,
I recently purchased a used Instrument Simulator (I.S.) and I cannot get it to function.
When I turn on the power, three LEDs illuminate: Power, Ready, and Listen.
When input any command in VISA test panel, I get the following error.
VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.
After getting this error, I check the serial port settings to make sure they are the same. Windows XP, MAX, and I.S. are all configured to 9600 baud, Hardware flow control, Parity off, 1 stop bit, 8 bits per character.
After checking that, I disconnected the serial cable from the I.S. Then I jumpered the DB9 serial cable terminals 4 to 6, 2 to 3, and 7 to 8. This was done to perform a loopback test as shown here.
http://zone.ni.com/devzone/cda/tut/p/id/3450#2
The result of the loopback test was good. I could send and receive in Hyperterminal, VISA, and the Basic Serial Write and Read.vi
With all that done, I am wondering if I bought a bad Instrument Simulator. Is there something that I am missing or is this thing junk?
Please help
04-28-2009 09:25 AM
Are you using the correct termination character for your instrument simulator? Some devices require a '\n' others a '\r' and others something different still. I would make sure this is correct as that seems like it could be a problem that would cause the same symptoms that you have. Take a look at this KnowledgeBase for troubleshooting steps.
Troubleshooting Steps for Serial Communications
http://digital.ni.com/public.nsf/websearch/8887d749a5e24ac88625696200665c56?OpenDocument
Regards,
Steven Zittrower
Applications Engineer
National Instruments
04-28-2009 07:35 PM
04-29-2009 09:10 AM
Can you check your manual for the instrument simulator to make sure that the dip switches are configured correctly. If they are set incorrectly it should error similar to yours.
Regards,
Steven Zittrower
Applications Engineer
National Instruments
04-29-2009 10:11 AM
The Instrument Simulator is set to 9600 baud, odd parity, parity generation/checking disabled, 1 stop bit/character, 8 bits per character, and operation in S mode.
Windows XP and MAX are all configured to 9600 baud, Hardware flow control, Parity off, 1 stop bit, 8 bits per character.
The attached files show exactly how I have the dip switches set.
I believe I am interpeting everything correctly.
Any more ideas are greatly appreciated.
04-29-2009 11:49 AM
And have you tried it with flow control off?
04-29-2009 12:02 PM
The manual states:
To use the simulator as a serial device, your software and serial cable must support RTS/CTS (Hardware) flow control.
I verified that all nine pins of my serial cable have conntinuity through the cable.
I appreciate the ideas. Keep them coming.
04-29-2009 12:15 PM
Can you post an NI Spy reading of when you try communicating with your device? You can find NI Spy by going to Start»Programs»National Instruments»NI Spy.
Regards,
Steven Zittrower
Applications Engineer
National Instruments
04-29-2009 12:28 PM