C/C++ Example Program - Agilent Technologies N6030A Series User Manual

Arbitrary waveform generators
Table of Contents

Advertisement

Basic Operation
Using the Programmatic Interfaces

C/C++ Example Program

/* Example for programming the N6030A IVI-C driver.
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 downloadingnthe 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
Chapter 2
53
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

N6031aN6032aN6033aN6030-80006

Table of Contents