6 - Language Dictionary
74
Example
void query_groups(CF_SERVER server)
{
char names[CF_MAX_GROUPS][CF_MAX_GROUP_NAME_LEN];
int starts[CF_MAX_GROUPS];
int sizes[CF_MAX_GROUPS];
cfGetGroups(server, names, starts, sizes);
}
cfGetInstIdentify
Syntax
int cfGetInstIdentify(CF_HANDLE server, char *idstring);
Description
This command returns a description of the instrument. The string begins with the model number,
then the product name, followed by the firmware version number, followed by instrument option
descriptions or abbreviations. The idstring is a maximum of CF_MAX_ID_LEN characters in
length and is returned as a null-terminated C string.
cfGetInstStatus
Syntax
int cfGetInstStatus(CF_HANDLE server, int *status);
Description
Returns the instrument status. Individual bits within the status word are defined to indicate
various status conditions. The following constants can be used to test different status conditions:
CF_EXT_FAULT_IN_STAT An input configured to the CF_EXT_FAULT_IN function was
asserted since the last time cfProtectClear was called.
CF_EXT_INTERLOCK_STAT An input which was configured to the CF_EXT_INTERLOCK
function is true.
CF_SERIALB_SWITCH_STAT True when serial port B is set as the configuration terminal port
by a hardware switch.
CF_LOW_RAIL_STAT The rail voltage got too low since the last time cfProtectClear
was called.
CF_HIGH_RAIL_STAT The rail voltage got too high since the last time cfProtectClear
was called.
CF_OVERTEMPERATURE_STAT The internal temperature got too high since the last time
cfProtectClear was called.
CF_CALIBRATING_STAT The instrument is calibrating.
CF_POWER_ON_STAT The instrument has not finished its power-on initialization.
CF_POWER_FAIL_STAT True whenever the CF_POWER_FAIL_IN signal is true.
CF_RAIL_NOT_READY_STAT There is no dc voltage on the power bus.
CF_RESTART_STAT True whenever there is a saved shutdown state that can be
restarted with cfRestart().
CF_SELFTEST_STAT True when a selftest is in progress.
CF_SELFTEST_ERROR_STAT True when a selftest error has occurred.
CF_SHUTDOWN_STAT True when either an automatic power fail shutdown occurred or
cfShutdown() was called since the last time cfProtectClear() was
called.
CF_CAL_ERROR_STAT True when a calibration error has occurred.