GPIBGetError
Valid for: CANoe DEFunction Syntax
Description
Returns the error variable. It is meaningful only when the ERR bit in the status word is set.Parameters
—Return Values
- Error status
- 28: On error, if no GPIB driver is available
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
long GPIBGetError (void);
// "40" is not a valid GPIB address
GPIBDevChangePrimAddr(devDescr, 40);
if ( ( 1 << 15) & GPIBGetStatus() )
{
write("ERR bit set in status word");
if ( 4 == GPIBGetError() )
{
write("error is EARG: Invalid argument to function call");
}
}