6 - Language Dictionary
cfGetSeqTestAnd
Syntax
int cfGetSeqTestAnd(CF_HANDLE server, CF_READP *read_pos, int
*step_number, CF_SEQ_TEST *meas_test_type, float *limit, CF_TIME_TEST *time_test_type, float *time, CF_SEQ_ACTION *action, int *count);
Description
Returns the parameters of the sequence tests defined by the functions cfSetSeqTest or cfSetSeqTestAnd. The server argument can be either a handle to a group obtained by cfOpenGroup, or a handle to all cells in the instrument if no groups are defined. Operation is similar to cfSetSeqTest. The number of measurement tests and limits is returned in *count. The arguments meas_test_type and limit must point to arrays of size CF_MAX_AND_TESTS.
cfGetSeqTime
Syntax
int cfGetSeqTime(CF_HANDLE server, float *time);
Description
Returns the time that has elapsed in seconds since the sequence was triggered. The server argument can be either a handle to a group obtained by cfOpenGroup, or a handle to all cells in the instrument if no groups are defined.
cfGetSerialConfig
Syntax
int cfGetConfig(CF_HANDLE server, int portnum, int *baudrate,
CF_SERIAL_PARITY *parity, int *wordsize, CF_SERIAL_FLOW *flow_ctrl);
Description
Returns the communication parameters of one of the serial ports.
port | CF_PORTA or CF_PORTB |
baudrate | 1200, 2400, 4800, 9600, or 19200 |
parity | CF_PARITY_EVEN, CF_PARITY_ODD, or CF_PARITY_NONE |
wordsize | 7 or 8 |
flow_ctrl | CF_FLOW_RTS_CTS, CF_FLOW_XON_XOFF, or CF_FLOW_NONE |
cfGetSerialStatus
Syntax
int cfGetSerialStatus(CF_HANDLE server, int portnum, int *status);
Description
Returns the status of one of the serial ports. Definitions for these bits are
CF_SERIAL_MAV | message available |
CF_SERIAL_PE | parity error |
CF_SERIAL_FE | framing error |
CF_SERIAL_OE | UART overrun error |
CF_SERIAL_INBUF_OE | input buffer overrun error |
CF_SERIAL_OUTBUF_OE | output buffer overrun error |
Reading the serial status clears the error bits. The MAV bit is cleared when there are no characters in the port’s FIFO to be read.
78