Keysight E1418A Service Guide
17
Operation
Operating Information
For example, if the following six integers are returned, the module has the
configuration indicated.
Configuration Example
The following program segment demonstrates how to read the module
identification string and the configuration. The configuration integers are bit
manipulated using the C operator for bit shifting
result = result <<1
(a one bit shift to the left). The code shown in this example can be obtained from
the file prftest.c on the examples disk provided with this manual.
/** FUNCTION PROTOTYPES **/
void main (void);
void err_handler(ViSession vi, ViStatus x);/* VTL error routine*/
void sys_err(ViSession resource);/* Checks for SCPI programming errors */
/** GLOBAL **/ ViStatus err;
ViSession defaultRM, cmd, dac, dmm;
int num_chan;
void main (void)
{
int i,result = {0},config [6]={0},num_chan = {0};
err=viPrintf(dac, “DIAG:CONF?\n”);/* request module configuration */
if(err VI_SUCCESS) err_handler(dac, err);
err=viScanf(dac, “%,6d”, &config);/* returns six integers*/
if(err VI_SUCCESS) err_handler(dac, err);
sys_err (dac);/* SCPI error check*/
Integer
Decimal
Value
Configuration
1st
7
No expansion board installed
(Only channels 1 through 8)
2nd
7
No Terminal Module installed or unknown
terminal module installed
3rd
-1
All channels are non-isolated
4th
-1
All channels are voltage output channels
5th
-1
All channel outputs are disabled
(all output relays are open)
6th
-1
All channels are output mode programmable
Summary of Contents for E1418A Option 002
Page 1: ...Keysight E1418A 8 16 Channel D A Converter Service Manual 75000 Series C ...
Page 2: ......
Page 6: ...6 ...
Page 10: ...10 Keysight E1418A Service Guide ...
Page 32: ...26 Keysight E1418A Service Guide Operating Information Operator s Checks ...
Page 77: ...Keysight E1418A Service Guide 71 Adjustment Procedure Adjustments ...
Page 78: ...72 Keysight E1418A Service Guide Adjustments Adjustment Procedure ...
Page 90: ...84 Keysight E1418A Service Guide Service Repair Maintenance Guidelines ...
Page 100: ...94 Keysight E1418A Service Guide Replaceable Parts Ordering Information ...
Page 102: ...96 Keysight E1418A Service Guide Manual Changes Introduction ...
Page 105: ......