Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Programmatically Obtaining GPIB Serial Number

0 ratings | 0.00 out of 5
Print

Downloads

Filename: serial_number_gpib.vi
Requirements: View

Using the function ibask (NI-488.2 version 2.2 or later) provided by the GPIB-32.dll, it is possible to query the GPIB interface board for its serial number. The parameter for ibask corresponds to the different pieces of information that the interface board can be queried for. Hexadecimal 23 corresponds to the serial number. It will be returned as a numeric value and can be viewed as it appears in Measurement and Automation Explorer by formatting the indicator for Hexadecimal display.

This will provide a way to verify the serial number of the GPIB board if it is necessary for logging in test applications.

Note: This VI will not function if a version of NI-488.2 prior to 2.2 is used.

Requirements


Filename: serial_number_gpib.vi

Software Requirements


Application Software: LabVIEW Base Development System 7.1
Language(s): LabVIEW

Hardware Requirements


Hardware Group: GPIB
Driver: NI-488.2 2.2

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

More recent versions of NI-VISA have the ability to report the serial number of a USB GPIB controller. It would be nice to have the PCI GPIB report it's serial number in the same way.
- Phillip Brooks, DYNAMICS RESEARCH CORPORATION. pbrooks@drc.com - Jun 28, 2006

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).