|
QLIB-function: QAPISpecial
With this function QAPISpecial it is possible to run card specific functions.
ULONG QAPISpecial (
ULONG cardid
ULONG jobcode
ULONG para1
ULONG para2
);
Parameter 1
| cardid |
Defines the ID of the card, which should be called |
Parameter 2:
| jobcode |
Defines the action, which should with the cardid used card run |
Parameter 3:
| para1 |
Parameter are dependent from jobcode (look at the remark field) |
Parameter 4:
| para2 |
Parameter are dependent from jobcode (look at the remark field) |
Return value
If the function was terminated successful, then there will be a jobcode dependent Return value send back
If the function is not successful, then is the Return value always 0.
Commands
For watchdog card could be used the following values for jobcode
jobcode JOB_ENABLE_WATCHDOG JOB_DISABLE_WATCHDOG JOB_RETRIGGER_WATCHDOG
Function para1 para2 Return value The watchdog will be activated --- --- --- The watchdog will be deactivated --- --- --- The watchdog will be retrigged. This must be in cyclic time steps --- --- ---
The following jobcodes are valid for the GPIB, PCIGPIB and the USBGPIB module;
1)JOB_TIMEOUT 2)JOB_READ_DEFAULT_TIMEOUT 3)JOB_WRITE_DEFAULT_TIMEOUT
1)Sets the GPIB timeout in milliseconds. A reading or writing operation will be canceled after the specified time has elapsed. 2)Reads the GPIB default timeout in milliseconds. This is the value to which the GPIB session is initialized when a GPIB card is opened 3)Sets the GPIB default timeout in milliseconds. This is the value to which the GPIB session is initialized when a GPIB card is opened Call JOB_TIMEOUT to modify the value after a card has been opened.A reading or writing operation will be canceled after the specified time has elapsed.
Back to the QLIB overview
|