For example, if the following six integers are returned, the module has the
configuration indicated.
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
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
*/
Chapter 3
Operating Information 21
Summary of Contents for E1418A
Page 4: ...Notes 4 HP E1418A 8 16 Channel D A Converter Service Manual Contents ...
Page 8: ...Notes 8 HP E1418A D A Converter Module Service Manual ...
Page 58: ...Notes 58 Verification Tests Chapter 4 ...
Page 66: ...Figure 5 5 Internal Resistor Adjustment Connections 66 Adjustments Chapter 5 ...
Page 81: ...Figure 6 1 8 Channel Disassembly Chapter 6 Service 81 ...
Page 82: ...Figure 6 2 16 Channel Disassembly 82 Service Chapter 6 ...
Page 84: ...Notes 84 Service Chapter 6 ...
Page 90: ...Figure 7 1 HP E1418A Replaceable Parts 90 Replaceable Parts Chapter 7 ...
Page 91: ...Figure 7 2 Common Terminal Module Replaceable Parts Chapter 7 Replaceable Parts 91 ...