/* Decode the second integer */
result = config [1]; /* Terminal Module */
if (result > 0)
{
printf (“Module does NOT have a terminal module installed\n”);
}
else
{
printf (“Module has a screw-type terminal module installed\n”);
}
/* Decode the third integer */
result=config[2]; /* Isolated or non-isolated outputs */
if (num_chan < 9) result = result << 8; /* strip upper 8 bits */
for (i=num_chan;i>0;i – –)
{
if (result >= 0x8000)
{
printf (“Channel %d is configured for non-isolated output\n”,i);
}
else
{
printf(“Channel %d is configured for isolated output\n”,i);
}
result = result << 1;
}
/* Decode the fourth integer */
result=config[3]; /* Output Mode Voltage or Current */
if (num_chan < 9) result = result << 8; /* strip upper 8 bits */
for (i=num_chan;i>0;i – –)
{
if (result >= 0x8000)
{
printf (“Channel %d is set to voltage output mode\n”,i);
}
else
{
printf(“Channel %d is set to current output mode\n”,i);
}
result = result << 1;
}
Chapter 2
Programming Examples 43
Summary of Contents for E1418A
Page 6: ...Notes 6 Contents HP E1418A 8 16 Channel D A Converter Module ...
Page 10: ...Notes 10 HP E1418A User s Manual ...
Page 12: ...12 HP E1418A User s Manual ...
Page 105: ...TRIGger 105 HP E1418A SCPI Command Reference Chapter 3 ...
Page 111: ...Notes HP E1418A Command Quick Reference 111 HP E1418A SCPI Command Reference Chapter 3 ...
Page 135: ...135 HP E1418A Register Based Programming Appendix B ...
Page 157: ...Notes 156 HP E1418A Error Messages Appendix C ...
Page 170: ...Notes Appendix D Voltage Current Output Adjustment 169 ...
Page 174: ...Figure E 1 8 Channel Disassembly 172 Configuration and Disassembly Appendix E ...
Page 175: ...Figure E 2 16 Channel Disassembly Appendix E Configuration and Disassembly 173 ...
Page 192: ...Notes 192 HP E1418A 8 16 Channel D A Converter Module Index ...