Bnc 1105 Universal Counter Manual de usuario Pagina 182

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 197
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 181
182
182182
182
return 0;
}
Example 4 Other Measurement
// OtherMeas.cpp : Defines the entry point for the console application.
#include "stdafx.h"
#include "visa.h"//include visa32.lib first to the probject.
#define MAX_COUNT 200
#include "stdio.h"
int main(int argc, char* argv[])
{
ViStatus stat; /* For checking errors */
ViSession defaultRM; /* Communication channels */
ViSession sesn; /* Communication channel */
ViChar rsrcName[VI_FIND_BUFLEN]; /* Serial resource name */
ViChar intfDesc[VI_FIND_BUFLEN]; /* Port binding description */
ViUInt32 ret; /* To hold number of resources */
ViFindList flist; /* To hold list of resources */
char readin[128]="";
int tmo;
printf("\n ###### Start C++ Example program. ######\n");
printf(" We check the Counter on USB port and\n");
printf(" identify the first connected device.\n\n");
/* Begin by initializing the system */
stat = viOpenDefaultRM(&defaultRM);
if (stat < VI_SUCCESS) {
/* Error Initializing VISA...exiting */
printf ("Error Initializing NI-VISA...");
return 0;
}
stat = viFindRsrc (defaultRM, "USB[0-9]::0x164E::0x0FA4::?*INSTR",
&flist, &ret, rsrcName);
Vista de pagina 181
1 2 ... 177 178 179 180 181 182 183 184 185 186 187 ... 196 197

Comentarios a estos manuales

Sin comentarios