•
•
•
/*** SCPI Error check ***/
void sys_err(ViSession resource)
{
char buf [1024] = {0};
int err_no;
err = viPrintf (resource, “SYST:ERR?\n”); /* query error queue */
if (err < VI_SUCCESS) err_handler(resource,err);
err = viScanf (resource,"%d%t",&err_no,&buf); /* get error number and string */
if (err < VI_SUCCESS) err_handler(resource,err);
while (err_no != 0)
{
printf (“\nCommand Error: %d,%s\n”,err_no,buf);
err = viPrintf (resource, “SYST:ERR?\n”); /* query error queue */
if (err < VI_SUCCESS) err_handler(resource,err);
err = viScanf (resource,"%d%t",&err_no,&buf); /* get error number and string */
if (err < VI_SUCCESS) err_handler(resource,err);
}
return;
}
/*** End of SCPI error check ***/
Chapter 2
Programming Examples 49
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 ...