Skip to main content

GPIBQueryEx

Valid for: CANoe DE

Function Syntax

long GPIBQueryEx (long deviceDescriptor, char cmdStr[], long size);

Description

Query to the device. The cmdStr is put to a queue, and then the function returns immediately. When the cmdStr has been sent to the device, and a response has been received, the user-supplied function GPIBResponse is called.

Parameters

  • deviceDescriptor: Device ID
  • cmdStr: Query string
  • Size: Maximum expected size of the data to be read.

Return Values

  • Status
  • -1: On error, if no GPIB driver is available, or if no GPIBResponse function was supplied

Example

Query after wave form: GPIBQuery(myDev, "WAVF?", 1024)