EasyManua.ls Logo

Keysight Technologies N8241A - Page 62

Keysight Technologies N8241A
125 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 2 63
Basic Operation
Using Programmatic Interfaces
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);
if (rc != VI_SUCCESS)
return -1;
// Enable or disable built-in 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++)
{

Table of Contents

Related product manuals