GPIBOnError
Valid for: CANoe DEFunction Syntax
Description
This optional function is called if a query or a write operation (GPIBWriteStr or GPIBWriteNum) raised an error condition. Users may implement this function and then receive the original query string or the data to be written, respectively. The result string, if any, is also returned, as well as the GPIB status word, the error code and the device descriptor.Parameters
- deviceDescriptor: The descriptor of the device that transmitted the response.
- query: The data transmitted in the failed
GPIBQuery…orGPIBWrite…call, respectively. - response: The data received from the device so far. The empty string if a write operation failure is reported.
- status: The GPIB status word.
- error: The GPIB error code.
Return Values
—Example
TheGPIBOnError callback function is used very much like GPIBResponse. Refer to it for an example.