niTuner_init

NI Tuner

niTuner_init

Function Prototype

int niTuner_init (int device, int *taskID);

Purpose

This function initializes the PXI-5600 downconverter by loading the calibration memory, clearing the internal registers, and setting them to the following defaults:

  • The PXI-5600 downconverter internal clock reference is used.
  • Phase-locked loops (PLLs) are successfully locked.
  • The tuner is set to a frequency of 100 MHz with a phase-detector frequency of 500 kHz.
  • Attenuation is set with a mixer level of –20 dBm and a reference level of 0 dBm.
  • The advance trigger is a software trigger.
  • The ready signal is an active low pulse of 1 µs width.

If all the PLLs lock correctly, the STATUS light on the PXI-5600 front panel is activated.

Parameters

Name Type Description
device int

Passes the device number of the NI–TUNER device to initialize.

This number is obtained from Measurement & Automation Explorer (MAX).

taskID int *

Returns a Task ID that is used to identify the PXI-5600 downconverter in all subsequent function calls.

Return Value

Returns the status of the function. To see an explanation of common error and warning codes, see Error and Status Codes. To see a text explanation of the status code, call niTuner_errorHandler.