
62
Chapter 2
Basic Operation
Using Programmatic Interfaces
ViBoolean resetDevice = VI_TRUE;
ViSession session = 0;
ViInt32 wfmHandle1;
ViInt32 wfmHandle2;
int i;
double twopi;
double ifWfm[WFM_LENGTH];
double Fsig = 500e6; // Set this to a CW frequency
// <= 500 MHz
double Fs = 1.25e9; // Sample Clock Frequency
// Initialize N8241A and setup session handle
rc = AGN6030A_init(resourceName, IDQuery, resetDevice,
&session);
if (rc != VI_SUCCESS)
return -1;
// Setup some Channel 1 states
// Set to single-ended operation, filter on,
// 500 MHz filter selected
rc = AGN6030A_ConfigureOutputConfiguration(session, "1",
AGN6030A_VAL_CONFIGURATION_SINGLE_ENDED,
VI_TRUE, 500e6);
if (rc != VI_SUCCESS)
return -1;
// Set output to ON
rc = AGN6030A_ConfigureOutputEnabled(session, "1",
VI_TRUE);
if (rc != VI_SUCCESS)
return -1;
// Do the same for Channel 2
rc = AGN6030A_ConfigureOutputConfiguration(session, "2",
AGN6030A_VAL_CONFIGURATION_SINGLE_ENDED,
VI_TRUE, 500e6);
Содержание N8241A
Страница 8: ...7...
Страница 9: ...8...
Страница 27: ...28 Chapter 1 Introducing the N8241 2A AWGs Getting Started 6 The AWG is now configured to the PC...
Страница 33: ...34 Chapter 1 Introducing the N8241 2A AWGs Maintenance...
Страница 45: ...46 Chapter 2 Basic Operation Using the Graphical User Interface Figure 2 6 N8241A Playback of a Sequence...
Страница 64: ...Chapter 2 65 Basic Operation Using Programmatic Interfaces...
Страница 65: ...66 Chapter 2 Basic Operation Using Programmatic Interfaces...
Страница 73: ...74 Chapter 3 Theory of Operation Waveform Playback Figure 3 2 Advanced Sequencer Flow Chart Figure 3 3...
Страница 76: ...Chapter 3 77 Theory of Operation Waveform Playback Figure 3 3 Waveform Play Flow Chart...
Страница 77: ...78 Chapter 3 Theory of Operation Waveform Playback Figure 3 4 Scenario and Sequence Play Flow Charts...
Страница 88: ...Chapter 3 89 Theory of Operation Multiple Module Synchronization Figure 3 9 Cabling Using and External Clock...
Страница 91: ...92 Chapter 3 Theory of Operation Multiple Module Synchronization...
Страница 109: ...110 Chapter 5 Direct Digital Synthesis Option 330 Theory of Operation Figure 5 7 DDS...