Language Dictionary - 6
cfSetSeqTestAnd
Syntax
int cfSetSeqTestAnd(CF_HANDLE server, 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
This command is similar to cfSetSeqTest, but it allows multiple tests that are combined with a logical AND during a sequence. The action is not taken unless all measurement tests are true. 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. The count argument defines how many tests are contained in the meas_tests_type and limit array arguments.
The maximum number of tests that can be passed in the meas_tests_type[] and limit[] arrays is defined by the macro CF_MAX_AND_TESTS.
Example
/* This example defines a test that will advance to the next step when
*the voltage is less than 3.1 V and the current is less than 0.5A
*/
CF_SEQ_TEST meas_test[CF_MAX_AND_TESTS]; float limit[CF_MAX_AND_TESTS]; meas_test[0] = CF_VOLT_LE;
limit[0] = 3.1;
meas_test[1] = CF_CURR_LE; limit[1] = 0.5;
cfSetSeqTestAnd(server, 1, meas_test, limit CF_TEST_AFTER, 0.0, CF_NEXT, 2);
cfSetSerialConfig
Syntax
int cfSetSerialConfig(CF_HANDLE server, CF_SERIAL_PORT port, int baudrate, CF_SERIAL_PARITY parity, int wordsize, CF_SERIAL_FLOW flow_ctrl);
Description
Sets 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 |
cfSetServerTimeout
Syntax
int cfSetServerTimeout(CF_HANDLE server, float timeout);
Description
This command sets the connection inactivity
99