Using the HP E1459A Module
33
/*
Query Ports 2 and 3 as a 32-bit word
*/
errStatus = viQueryf(E1459, "MEAS:DIG:DATA2:LWORD:VAL?\n","%t", val1);
if (VI_SUCCESS > errStatus){
printf("ERROR: viQueryf() returned 0x%x\n",errStatus);
return errStatus;}
printf("Value returned %i\n",val1);
/*
Close Sessions
*/
errStatus = viClose (E1459);
if (VI_SUCCESS > errStatus){
printf("ERROR: viClose() returned 0x%x\n",errStatus);
return 0;}
errStatus = viClose (viRM);
if (VI_SUCCESS > errStatus){
printf("ERROR: viClose() returned 0x%x\n",errStatus);
return 0;}
}
/* End of main program */
Содержание E1459A
Страница 4: ...4 Contents ...
Страница 8: ...8 Notes ...
Страница 10: ......
Страница 28: ...28 Installing and Configuring the HP E1459A ...
Страница 61: ...HP E1459A SCPI Command Reference 61 Figure 3 1 HP E1459A Status System Register Diagram ...
Страница 72: ...72 HP E1459A SCPI Command Reference ...
Страница 74: ...74 HP E1459A Specifications ...
Страница 103: ...HP E1459A Register Definitions 103 1970 END ...
Страница 104: ...104 HP E1459A Register Definitions ...
Страница 106: ...106 Error Messages ...
Страница 110: ...110 Index ...