Chapter 2
57
Basic Operation
Using the Programmatic Interfaces
Basic Op
er
atio
n
// waveform handle if Channel 2 is not used.
rc = AGN6030A_CreateArbWaveform(session,
WFM_LENGTH, ifWfm, &wfmHandle1);
if ( rc != VI_SUCCESS )
return -1;
rc = AGN6030A_CreateArbWaveform(session,
WFM_LENGTH, ifWfm, &wfmHandle2);
if ( rc != VI_SUCCESS )
return -1;
// Configure N6030A to play downloaded waveforms.
// Set to 250 mV gain and 0V offset.
rc = AGN6030A_ConfigureArbWaveform(session, "1",
wfmHandle1, 0.250, 0.0);
if ( rc != VI_SUCCESS )
return -1;
rc = AGN6030A_ConfigureArbWaveform(session, "2",
wfmHandle2, 0.250, 0.0);
if ( rc != VI_SUCCESS )
return -1;
// Close the open session
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com