Tips on Setting GPIB Properties in Windows 95/98 Hardware: GPIB
Problem: How do I set my GPIB properties in Windows 95/98? Solution: If you are new to GPIB, then do not make the mistake of confusing the primary address of your GPIB interface (i.e., your board) with the primary address of your GPIB device (i.e., your instrument). The primary address of the GPIB interface should always be 0, unless you have more than one GPIB board in your computer. If you make the mistake of giving your GPIB board the same primary address as your instrument, then you will get an EADR error (an addressing error) whenever you try to talk to your instrument. The Termination Methods are the most common settings that you might change. There are three ways to terminate data messages:
Byte count is ALWAYS used as a termination method, but you can also combine byte count with EOS, EOI, or both EOS and EOI. Many instruments will require an EOS character, usually linefeed (LF: \n, hex 0A, decimal 10) or carriage return (CR: \r, hex 0D, decimal 13), when you write data messages to them. In turn, they will terminate their own data messages to the GPIB board with the same EOS character. If you have more than one instrument and they each require a different termination method, then configure them individually in the Device Templates.
The default Device Name for the device at primary address 1 is "DEV1". The check in the box for Terminate Read on EOS (under Termination Methods) indicates that we will expect the instrument to terminate its messages with an EOS character. The EOS Byte box holds a value of 10, which is the decimal representation of the linefeed character.
Also, if you expect to do any programming, then the preferred method of assigning these properties is to use the ibdev command (rather than using the ibfind command, which would make use of the information in the Device Templates). The ibdev command will override any settings in the Device Templates, making your code independent of the Device Template settings on any other computer, to which you might port your code.
Related Links: Product Manuals: NI-488.2 User Manual Developer Zone Tutorial: GPIB Hardware and Software Specifications GPIB Support: GPIB Installation/Configuration Troubleshooter Developer Zone Tutorial: Termination Characters for NI-VISA Attachments:
Report Date: 09/21/2006 Last Updated: 03/05/2008 Document ID: 41K6IQDW |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||


