Download NI-488.2M Software Reference Manual
Transcript
Chapter 5 NI-488M Software Characteristics and Functions IBSAD (3) IBSAD (3) Purpose: Change or disable Secondary Address. Syntax: int ibsad ( int ud, int v) ud specifies a device or an interface board. If v is a number between hex 60 and hex 7E, that number becomes the secondary GPIB address device or interface board. If v is hex 7F or zero, secondary addressing is disabled. ibsad is needed only to alter the secondary address value from its configuration setting. The assignment made by this function remains in effect until ibsad is called again, the ibonl or ibfind function is called, or the system is restarted. When ibsad is called and an error does not occur, the previous secondary address is stored in iberr. Device IBSAD Function If ud specifies a device, the function enables or disables extended GPIB addressing for the device. When secondary addressing is enabled, the specified secondary GPIB address of that device is sent automatically in subsequent device I/O functions. Board IBSAD Function If ud specifies an interface board, the ibsad function enables or disables extended GPIB addressing and, when enabled, assigns the secondary address of the GPIB board. Refer also to IBPAD and IBONL. Device Function Example: 1. Change the secondary GPIB address of plotter from its current value to hex 6A. ibsad (dvm, 0x6A); © National Instruments Corp. 5-73 NI-488.2M Reference Manual