Chapter 2
55
Basic Operation
Using the Programmatic Interfaces
Basic Op
er
atio
n
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);
if ( rc != VI_SUCCESS )
return -1;
rc = AGN6030A_ConfigureOutputEnabled(session, "2",
VI_TRUE);
if ( rc != VI_SUCCESS )
return -1;
// Select the Internal Sample Clock and an
//External Reference Clock
rc = AGN6030A_ConfigureSampleClock(session,
AGN6030A_VAL_CLOCK_INTERNAL, Fs);
if ( rc != VI_SUCCESS )
return -1;
// This uses the front panel 10MHz REF IN
connection.
// To use the PCI backplane clock, substitute
// AGN6030A_VAL_REF_CLOCK_PXI
rc = AGN6030A_ConfigureRefClockSource(session,
AGN6030A_VAL_REF_CLOCK_EXTERNAL);
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com