Device Functions

The device functions send configuration information to a specific instrument or device.

loc—Go to local

off—Take device offline

pct—Pass control

ppc—Parallel poll configure

loc—Go to local

syntax loc address

loc temporarily moves devices from a remote program mode to a local mode.

address is the GPIB address of the device. This argument indicates both primary and secondary addresses if you use the form primary+secondary, where primary and secondary are the decimal values of the primary and secondary addresses. For example, if primary is 2 and secondary is 3, address is 2+3.

loc sends the GTL (Go To Local) message to the GPIB device.

off—Take device offline

syntax off address

off takes the device at the specified GPIB address offline. This is only needed when sharing a device with another application which is using the NI-488 GPIB Library.

address is the GPIB address of the device. This argument indicates both primary and secondary addresses if you use the form primary+secondary, where primary and secondary are the decimal values of the primary and secondary addresses. For example, if primary is 2 and secondary is 3, address is 2+3.

pct—Pass control

syntax pct address

pct passes Controller-In-Charge (CIC) authority to the device at the specified address. The GPIB Controller becomes idle automatically. The function assumes that the device to which pct passes control has Controller capability.

address is the GPIB address of the device. This argument indicates both primary and secondary addresses if you use the form primary+secondary, where primary and secondary are the decimal values of the primary and secondary addresses. For example, if primary is 2 and secondary is 3, address is 2+3.

pct sends the following command sequence:

  1. Talk address of the device
  2. Secondary address of the device, if applicable
  3. Take Control (TCT)

ppc—Parallel poll configure

syntax ppc byte address

ppc enables the instrument to respond to parallel polls.

byte is 0 or a valid parallel poll enable (PPE) command. If byte is 0, the parallel poll disable (PPD) byte 0x70 is sent to disable the device from responding to a parallel poll. Each of the 16 PPE messages selects a GPIB data line (DIO1 through DIO8) and sense (1 or 0) that the device must use when it responds to the Identify (IDY) message during a parallel poll. The device compares the ist sense and drives the indicated DIO line TRUE or FALSE.

address is the GPIB address of the device. This argument indicates both primary and secondary addresses if you use the form primary+secondary, where primary and secondary are the decimal values of the primary and secondary addresses. For example, if primary is 2 and secondary is 3, address is 2+3.