Agilent Technologies E1445A Podręcznik Użytkownika Strona 493

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 539
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 492
Agilent E6432A Microwave Synthesizer Users Guide 5-3
Applications and Example Programs
Example Program RunList.cpp
Example Program RunList.cpp
// RunList.cpp : Run a list
//
// Note: Error checking eliminated for clarity
#include "stdafx.h"
#include "windows.h"
#include "visatype.h"
#include "HPE6432.h"
#define LIST_POINTS 10000
int main(int argc, char* argv[]) {
ViSessionsession;
ViStatusstatus;
ViUInt16flags;
ViReal64f=10e6, a=10.0;
ViInt32loops=LIST_POINTS;
ViReal64freq[LIST_POINTS],
power[LIST_POINTS];
ViInt16atten[LIST_POINTS];
ViInt16features[LIST_POINTS];
// Initialize E6432
status = HPE6432_init("VXI0::210::INSTR", false,
false, &session);
// Set minimum dwell time
status = HPE6432_SetDwellTime(session, 0.0000005);
// Turn RF Onstatus =
HPE6432_SetRfOutputState(session, VI_TRUE);
// Build a list and write it to the E6432
for (int j=0 ; j<LIST_POINTS ; j++) {
freq[j] = f;
Przeglądanie stron 492
1 2 ... 488 489 490 491 492 493 494 495 496 497 498 ... 538 539

Komentarze do niniejszej Instrukcji

Brak uwag