Agilent Technologies E1445A Guide de l'utilisateur Page 246

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 539
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 245
4-10 Agilent E6432A Microwave Synthesizer User’s Guide
Opening a Session Using C
An example of opening a VXI session is:
/* open a VXI session to the instrument at logical address 210
*/
#include “visatype.h”
#include “hpe6432types.h”
#include “hpe6432errors.h”
#include “hpe6432.h”
ViSession instrumentHandle;
ViStatus errStatus;
errStatus = HPE6432_init("VXI0::210::INSTR", VI_FALSE,
VI_FALSE, &instrumentHandle);
if( VI_SUCCESS <> errStatus) {
printf("Unable to open instrument\n");
}
Opening a Session Using Visual BASIC 6.0
An example of opening a session to the Agilent Technologies E6432A
using Visual BASIC 6.0 is:
' open a VXI device session to the instrument at logical
address 210
errStatus = HPE6432_init("VXI0::210::INSTR", 0, 1, vi)
If VI_SUCCESS > errStatus Then
errStatus = HPE6432_error_message(vi, errStatus, ErrMsg)
msg$ = "Unable to open " + Addr + Chr$(13)
msg$ = msg$ + "HPE6432_init() returned message: " + ErrMsg
MsgBox msg$
End
End If
Vue de la page 245
1 2 ... 241 242 243 244 245 246 247 248 249 250 251 ... 538 539

Commentaires sur ces manuels

Pas de commentaire