Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Transitioning Applications from NI 5401 to NI 5402/NI 5406.

Primary Software: Driver Software>>NI-FGEN
Primary Software Version: 2.4
Primary Software Fixed Version: N/A
Secondary Software: N/A
Hardware: Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PCI-5401, Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PXI-5401, Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PCI-5402, Signal Sources (AWG/FG/AO)>>Arbitrary Waveform and Function Generators>>PXI-5402

Problem: How do I transition my application from a NI 5401 to a NI 5402 or NI 5406?

Solution: The following two tables show a comparison of the features and functions between the NI 5401 and the NI 5402/NI 5406. Consult the tables with the specific actions or operations that the NI 5401 is doing to see what must be changed to transition the application to a NI 5402/NI 5406.

Features Supported by Device

The following table shows a comparison of the features between the NI 5401 and the NI 5402/NI 5406.
 NI 5401NI 5402 / NI 5406
Basic Operation
Operation ModesStandard Function,
Frequency List
Standard Function,
Frequency List
Standard Function Output
WaveformSine,
Square,
Triangle,
Ramp Up,
Ramp Down,
DC,
Noise,
User-Defined
Sine,
Square,
Triangle,
Ramp Up,
Ramp Down,
DC,
Noise,
User-Defined
Maximum Frequency1Sine: 16 MHz
Other: 1 MHz
Sine:20 MHz40 MHz
Square:20 MHz40 MHz
Other:1 MHz5 MHz
User:20 MHz40 MHz
SYNC Duty Cycle20% to 80%Square: 20% to 80%
SYNC: 50%
User-Defined Waveform Size16,384 samples16,384 samples
Frequency List Output
Maximum Number of Lists*169,999
Maximum List Length*51258,253
Maximum Step Duration*3.35544 s21 s
Minimum List Length*11
Minimum Step Duration*1 ms1 ms
List Duration Quantum*200 ns80 ns
Output Characteristics
Output Voltage
(at load equal to source impedance)
up to ±5 Vup to ±5 V
Offset
(at maximum gain)
±2.5 V±5 Vpk
Output Impedance50 Ω, 75 Ω50 Ω, 75 Ω
Analog Path—Main,
Fixed Low-Gain,
Fixed High-Gain
Analog Filter OptionYesYes
Filter Correction Frequency Option /
Flatness Correction for Sine Waveforms
YesYes
Digital Filter OptionYesYes
Digital Filter Interpolation Factor2
(fixed when filter is enabled)
2 or 8
(automatic for Standard Function and Frequency List modes)
Triggering and Synchronization
Trigger Modes
Single,
Continuous,
Burst
Single,
Continuous,
Stepped,
Burst
Trigger SourcesImmediate,
External,
Software,
RTSI_<0..5>,
RTSI_6 (PCI only),
PXI_STAR (PXI only)
Immediate,
External,
Software,
RTSI_<0..7>,
PXI_STAR
Multiple Device SynchronizationLimited2Using NI-TClk3
Events
Ready for Start—Yes
Started—Yes
Done—Yes
Clocking
Sample Rate (Update Rate)
before filtering and interpolation
40 MSps100 MSps
Reference Clock SourceInternal (none),
External,
PXI 10 MHz clock (PXI only)
RTSI clock (PCI only)
Internal (none),
External (CLK IN),
PXI 10 MHz clock (PXI only),
RTSI_7 (RTSI clock; PCI only),
Onboard (PCI only)
Reference Clock Frequency1 MHz
or
5 to 20 MHz in 1 MHz steps
5 to 20 MHz in 1 MHz steps
Update/Sample Clock SourceInternal,
External (PXI only)
Internal
Calibration
Self-Calibration Functionsni54xx_CalSelfCalibrate,
ni54xx_CalRestoreExternalConstants
niFgen_SelfCal,
niFgen_RestoreLastExtCalConstants
Calibration Utility Functions4ni54xx_functionsniFgen_ functions
External Calibration Functions5ni54xx_CalStart and associated functionsniFgen_InitExtCal and associated functions

*You can get the value of this characteristic by calling a query function or by reading an attribute. NI recommends that your programs query or read the characteristic rather than depend on a certain value.
1Refer to the device specifications for conditions.
2You can synchronize the NI 5401 in Standard Function mode as long as it is unnecessary to change the phase between devices while generating.
3Refer to the NI-TClk Synchronization Help file for more information.
4NI 5401 calibration utility functions include:
  • ni54xx_CalFetchDate
  • ni54xx_CalFetchCount
  • ni54xx_CalFetchMiscInfo
  • ni54xx_CalStoreMiscInfo
  • ni54xx_CalChangePassword
5External calibration functions and steps vary from device to device. For more information about calibrating your device, refer to the calibration procedure for your device:
  • NI 54XX Calibration Procedure (NI 5401)
  • NI PXI-5404 Calibration Procedure

NIFGEN Functions Supported by Device

The following table shows a comparison of the NIFGEN functions between the NI 5401 and the NI 5402/NI 5406.
FunctionNI 5401NI 5402 / NI 5406Convert to NI 5402 TaskPossible
Error
Note
InitializeNo difference.Supports the NI-DAQmx style resource naming convention.N/AN 
Configure Analog FilterAnalog filter and Filter Correction Frequency are supported.Analog filter and Flatness Correction for Sine Waveforms are supported.N/ANThe Filter Correction Frequecy feature corrects for the normal sync roll-off that DACs exhibit. This requires the program to configure the Analog Filter with the configured signal frequency. The Flatness Correction for Sine Waveforms automatically works for the configured waveform.
Configure Digital FilterNo difference.N/ANThe NI 5402/5406's default interpolation factor is 4. It can be set to 2 if required.
Configure Output EnableNo difference.N/AN 
Configure Output ImpedanceNo difference.N/AN 
Configure Update Clock SourceSupportedNot SupportedRemove function from program.Y 
Configure Sample Clock SourceInternal
External (PXI only - PLL REF smb)
InternalIf configured, review function parameters and ensure that configured parameters are applicable to the NI 5402/6.YObsolete Function: Configure Update Clock Source
Configure Reference Clock:
Ref Clock Frequency
1 MHz or 5 to 20 MHz in 1 MHz steps1 MHz to 20 MHz in 1 MHz steps.If configured, review function parameters and ensure that configured parameters are applicable to the NI 5402/6.NObsolete Function: Configure Ref Clock Frequency
Configure Reference Clock:
Ref Clock Source
Internal
External
RTSI Clock
Internal
REF IN
PXI_CLK10 (PXI)
RTSI 7 (PCI)
ONBOARD REF CLOCK (PCI)
If configured, review function parameters and ensure that configured parameters are applicable to the NI 5402/6.YThe External setting will result in an error on the NI 5402/NI 5406. Select CLK IN for the REF IN option.
Obsolete Function: Configure Ref Clock Source
Export SignalNONE
MARKER
SYNC OUT
OUT START TRIGGER
BOARD CLOCK
SYNCHRONIZATION
Sample Clock
Reference Clock
Onboard Reference Clock
Ready For Start Event
Started Event
Done Event
Sync Out
ONBOARD REF CLOCK
If confiured, review function parameters and ensure that configured parameters are applicable to the NI 5402/6.YObsolete Function: Route Signal Out
Configure SynchronizationSupportedNot SupportedRemove function from program.YRefer to the NI-TClk Synchronization Help file for more information.
Configure TriggerImmediate
External
Software Trigger VI
PXI Star
RTSI <0..7>
Disable(Immediate)
Software Edge
PFI <0..3>
PXI Trigger Line <0..7>
RTSI <0..7>
PXI STAR Line
If configured, review function parameters and ensure that configured parameters are applicable to the NI 5402/6.
Immediate on the NI 5401 should be reconfigured for Disable or just not configured on the NI 5402/6.
External on the NI 5401 should be reconfigured for PFI <0..1> on the NI 5402/6.
YExternal (EXT TRIG smb) on the NI 5401 will map to PFI0 on the NI 5402/6.
Configure Trigger ModeNo difference.N/AN 
Send Software Edge TriggerNo difference.N/ANObsolete Function:
Send Software Trigger
Configure Output ModeStandard Function
Frequency List
Standard Function
Frequency List
Review function parameters.N 
Clear User Standard WaveformNo difference.N/AN 
Configure Standard WaveformNo difference.N/AN 
Define User Standard Waveform16,384 samples16,384 samplesN/AN 
Clear Frequency ListNo difference.N/AN 
Create Frequency List
Max # Lists16
Max Length512
Min Length1
Max Step Dur.3.35 s
Min Step Dur.1 ms
Step Dur. Quantum200 ns
Max # Lists9,999
Max Length58,253
Min Length1
Max Step Dur.21 s
Min Step Dur.1 ms
Step Dur. Quantum80 ns
Review function parameters.N 
Configure Frequency ListNo difference.N/AN 
Query Freq List CapabilitiesNo difference.N/AN 
Initiate GenerationNo difference.N/AN 
Abort GenerationOn Abort Generation, current generation stops, and output signal goes to 0V.Current generation stops, and output signal goes to 0V. Square Wave: Ouput goes to square wave lower amplitude.N/AN 
Is DoneNot SupportedSupportedN/AN 
Wait Until DoneNot SupportedSupportedN/AN 
CloseCloses session to NIFGEN driver. If hardware is currently generating a waveform when called, the arb will continue generating the waveform until stopped. Either by the computer power being turned off, or a new NIFGEN session is opened to the module to change it's current operation.Closes session to NIFGEN driver. Current generation stops, and output signal goes to 0V. Square Wave: Ouput goes to square wave lower amplitude.N/AN 


NIFGEN Properties Supported by Device

The following table shows select properties that show a difference between the NI 5401 and the NI 5402 / NI 5406.
PropertyNI 5401NI 5402 / NI 5406Convert to NI 5402 TaskPossible
Error
Note
Clock Attributes:
Onboard Reference Clock: Export Output TerminalNot SupportedSupportedAdd if necessaryN 
Reference Clock: Export Output TerminalNot SupportedSupportedAdd if necessaryN 
Sample Clock Timebase: Export Output TerminalNot SupportedSupportedAdd if necessaryN 
Sample Clock: Export Output TerminalNot SupportedSupportedAdd if necessaryN 
Sample Clock: SourceNot SupportedNot SupportedYY 
Instrument Specific Attributes:
Serial NumberNot SupportedNot SupportedNY 
Temperature Sensor LocationNot SupportedSupportedN/AN 
Obsolete:
Inherent IVI Attributes: Driver Identification: Major VersionSupportedNot SupportedRemove property from program and use internal clock source, or Reference Frequency Source.N 
Update Clock SourceSupportedNot SupportedRemove property from program and use internal clock source, or Reference Frequency Source.Y 
Output Attributes:
Analog Filter EnabledSupportedNIFgen automatically enabled the analog filter for Sine and disabled for every other waveform except user. User waveform is as configured.Optional: Remove functions for every waveform except user.NNIFgen ignores this property with the exception of User waveform. No error is returned.
Analog PathNot SupportedSupportedN/AN 
Digital Filtered EnabledSupportedNIFgen automatically enabled the analog filter for Sine and disabled for every other waveform except user. User waveform is as configured.Optional: Remove functions for every waveform except user.NNIFgen ignores this property with the exception of User waveform. No error is returned.
Digital GainNot SupportedSupportedOptionalN 
Filter Correction FrequencySupportedNot SupportedRemove FunctionNNIFgen atuomatically handles flatness correction based upon configured frequency.
Load ImpedanceNot SupportedSupportedOptionalN 
Sync Duty Cycle HighSupportedNot SupportedRemove function from code.YSync is limited to a 50% duty cycle. The square wave out though can vary it's duty cycle.
Standard Function Output:
Duty Cycle HighRead OnlyOptionalN/ANNI 5402/NI 5406 supports configuring the square waveform duty cycle.
Triggering:
Pause: Digital Level: SourceNot SupportedSupportedN/AN 
Pause: Digital Level: Trigger WhenNot SupportedSupportedN/AN 
Pause: Export Output TerminalNot SupportedSupportedN/AN 
Pause: Trigger TypeNot SupportedSupportedN/AN 
Start: Digital Edge: EdgeNot SupportedSupportedN/AN 
Start: Digital Edge: SourceNot SupportedSupportedN/AN 
Start: Export Output TerminalNot SupportedSupportedN/AN 
Start: Trigger TypeNot SupportedSupportedN/AN 
Synchronization SourceSupportedNot SupportedRemove property from program.YModule supports NI-TClk


Related Links:

Attachments:





Report Date: 03/09/2006
Last Updated: 07/06/2006
Document ID: 3V87TOOL

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit