Bnc 1105 Universal Counter Instrukcja Użytkownika Strona 171

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 197
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 170
171
171171
171
E
. About Application Programs
This section provides a brief description for each MODEL 1105 sample
collection.
Using CONFigure to Measurement
Example 1 Freq & Ratio measurement
// Freq_Ratio.cpp : Defines the entry point for the console application.
#include "stdafx.h"
#include "visa.h" //include visa32.lib first to the project.
#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 */
Przeglądanie stron 170
1 2 ... 166 167 168 169 170 171 172 173 174 175 176 ... 196 197

Komentarze do niniejszej Instrukcji

Brak uwag