
Chapter 2
61
Basic Operation
Using Programmatic Interfaces
C/C++ Example Program
/* Example for programming the N8241A IVI-C driver.
Copyright (C) 2005, 2006 Agilent Technologies, Inc.
This will compile and link into a working.EXE file.
For Compile: Add include path = C:\Program
Files\IVI\include,
C:\vxipnp\winnt\include
For Link: Add libpath = C:\Program Files\IVI\Lib\msc,
Add lib = AGN6030A.lib
Opening a session with predistortion enabled (default)
creates a discrepancy for the waveform in ch2 since
predistortion is applied twice; once when it was
downloaded to ch1 and again when it is downloaded to ch2.
You can eliminate this problem by turning off the
predistortion before downloading the waveform to ch2. An
alternative is to clone the waveform to another file
name. For example, clone Wfm_ch1 to Wfm_ch2.
*/
#include <math.h>
#include <windows.h>
#include <winbase.h>
#include <AGN6030A.h>
// #include "stdafx.h" // if you use Microsoft
// Visual Studio you might use this
#define WFM_LENGTH 800 //should be integer divisible by
16
int main(int argc, char* argv[])
{
ViStatus rc;
ViRsrc resourceName =
"TCPIP0::A-N8241-90XXX::inst0::INSTR"; // Set
// this to match your hardware
ViBoolean IDQuery = VI_FALSE;
Содержание 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...