![]() |
|
di_copy_mux
allows you to retrieve a description of each bank of 16 channels on DI-400, DI-500 Series, DI-720, and DI-730 instruments.
int di_copy_mux(dest); |
|
int *dest; |
/* pointer to 16-word buffer */ |
dest
is a pointer to a 16-word buffer that will contain data describing the channels (as defined in Remarks below).
DI_NO_ERR | No error |
DI_OPENED_ERR | Device not opened |
DI_INFO_ERR | Device is not a DI-400 Series, DI-500 Series, DI-720, DI-730, or DI-5001 instrument |
none
Each byte describes a bank of 16 channels. The first two bytes are reserved, the third byte is for channels A1 through A16, the fourth is for A17 through A32, etc. In each byte, the bit assignments are as follows:
bit 7 | bit 6 | bits 5, 4, 3 | bit2 | bit 1 | bit 0 |
PGH/PGL | Input Type | Channel | MUX | Cable | HV Option |
This bit describes the MUX gain status. When set, the MUX is low gain PGH (programmable ain factors 1, 2, 4, and 8). When clear, the MUX is high gain PGL (programmable gain factors 1, 10, 100, and 1000 on DI-500 Series instruments or 1, 10, and 100 on DI-400 Series instruments).
This bit describes the input type. When set, the inputs are signal conditioned (DI-5B amplified). When clear, the inputs are high-level.
These bits contain bits one through three of the primary channel to which the MUX connects (bit 4 of the primary channel is always 1, and bit 0 is 1 for odd channels or 0 for even channels).
This bit describes the MUX status. When set, MUX is not present. When clear, MUX is present.
This bit describes the cable status. When set, the cable is not defective. When clear, the cable is defective.
This bit describes the high voltage option status of the bank of 16 channels. When clear, this bank of 16 channels has high voltage measurement capability. When set, this bank of 16 channels does not have high voltage measurement capability.
main() |
|
{ |
|
int mux_infor[16]; |
|
di_open(); |
|
di_copy_mux(mux_info); |
|
di_close(); |
|
} |
Copyright © DATAQ Instruments, Inc.