/* Decode the fifth integer */
result=config[4]; /* Channel relay open or closed */
if (num_chan < 9) result = result << 8; /* strip upper 8 bits */
for (i=num_chan;i>0;i – –)
{
if (result >= 0x8000)
{
printf (“Channel %d output is disabled\n”,i);
}
else
{
printf(“Channel %d output is enabled\n”,i);
}
result = result << 1;
}
/* Decode the sixth integer */
result=config[5]; /* P/J Jumper position */
if (num_chan < 9) result = result << 8; /* strip upper 8 bits */
for (i=num_chan;i>0;i – –)
{
if (result >= 0x8000)
{
printf (“Channel %d output mode is programmable\n”,i);
}
else
{
printf(“Channel %d output mode is fixed and jumper selected\n”,i);
}
result = result << 1;
}
•
•
•
}
44 Programming Examples
Chapter 2
Содержание E1418A
Страница 6: ...Notes 6 Contents HP E1418A 8 16 Channel D A Converter Module ...
Страница 10: ...Notes 10 HP E1418A User s Manual ...
Страница 12: ...12 HP E1418A User s Manual ...
Страница 105: ...TRIGger 105 HP E1418A SCPI Command Reference Chapter 3 ...
Страница 111: ...Notes HP E1418A Command Quick Reference 111 HP E1418A SCPI Command Reference Chapter 3 ...
Страница 135: ...135 HP E1418A Register Based Programming Appendix B ...
Страница 157: ...Notes 156 HP E1418A Error Messages Appendix C ...
Страница 164: ...Figure D 4 Resistance Calibration Connections CAL Appendix D Voltage Current Output Adjustment 163 ...
Страница 170: ...Notes Appendix D Voltage Current Output Adjustment 169 ...
Страница 174: ...Figure E 1 8 Channel Disassembly 172 Configuration and Disassembly Appendix E ...
Страница 175: ...Figure E 2 16 Channel Disassembly Appendix E Configuration and Disassembly 173 ...
Страница 177: ...Figure E 3 Plug on Channel Locations Figure E 4 Installing Plug on Modules Appendix E Configuration and Disassembly 175 ...
Страница 192: ...Notes 192 HP E1418A 8 16 Channel D A Converter Module Index ...