Index

gpib_send device, command

Send a command string to a device on the GPIB bus.

Arguments:
GpibDev device
The address of the GPIB device to send the command to.
GpibCmd command
The command string to send to the GPIB device.

Example:
The CBI power meter has GPIB address 13. The following example causes it to display the message "Hello World" on its front panel display.
  gpib_send 13, "DU Hello World"
Context:
One of the boards that the real-time control system manages is a VME interface to a GPIB bus. In the current design of the CBI this will be used solely to interact with a power meter, but in principle up to 30 instruments can be daisy-chained on a GPIB bus, so this command provides a simple way to command other instruments on the bus. If you specify a GPIB address that doesn't correspond to any instrument on the GPIB bus then this call will time-out after 5 seconds.

Martin Shepherd (9-Oct-1997)