![background image](http://html1.mh-extra.com/html/agilent-technologies/n6030-80006/n6030-80006_user-manual_2868465057.webp)
56
Chapter 2
Basic Operation
Using the Programmatic Interfaces
B
a
si
c Op
er
at
io
n
if ( rc != VI_SUCCESS )
return -1;
// Enable or disable built-in N6030A corrections.
// Default is enabled. This attribute is not
available in // release 1.00.
/* rc = AGN6030A_SetAttributeViBoolean(session,
NULL, AGN6030A_ATTR_PREDISTORTION_ENABLED,
VI_TRUE);
if ( rc != VI_SUCCESS )
return -1;
*/
/ Build a sample waveform for testing.
// This produces a CW tone at Fsig Hz.
twopi = 8.0 * atan( 1.0 );
for ( i = 0; i < WFM_LENGTH; i++ )
{
ifWfm[i] = sin( twopi * (Fsig/Fs) * (double)i );
}
// Set N6030A output mode to ARB in preparation of
// downloading and playing our waveform.
rc = AGN6030A_ConfigureOutputMode(session,
AGN6030A_VAL_OUTPUT_ARB);
if ( rc != VI_SUCCESS )
return -1;
// Download the waveform to both channels 1 and 2
even if 2 // is not used. This is a requirement of
the N6030A at
// this time and must be followed!! To do this,
call
// the function twice and discard the second
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com