Manuals >Reference >Drivers Print version of this Book (PDF file) |
![]() ![]() |
||||||||||||||||
|
|||||||||||||||||
Handling Signals and ExceptionsA variety of conditions may result in termination of a measurement. Among the most common exceptions for a driver is an I/O timeout. Timeouts usually occur when one or more of the following conditions is present:
There are numerous examples in the hp4194 and cvu_4194 functions code that demonstrate setting the timeout before making different queries to the instrument. A timeout is usually detected as a value of -1, returned from the spoll, readstring, or writestring functions of the hpib_io_port used by the driver software. In addition to instrument I/O problems, either of the following signals may be generated:
If your application requires special error recovery for these signals, it is possible to trap them. For details, refer to "Handling Signals and Exceptions" in the User's Guide.
Do not alter the handling of SIGUSR1 and SIGUSR2; both signals are used internally by IC-CAP for error trap and recovery purposes.
|
|||||||||||||||||
|
|||||||||||||||||
![]() ![]() |