Page 3
Instruments Corporation. National Instruments respects the intellectual property of others, and we ask our users to do the same. NI software is protected by copyright and other intellectual property laws. Where NI software may be used to reproduce software or other materials belonging to others, you may use NI software only to reproduce materials that you may reproduce in accordance with the terms of any applicable license or other legal restriction.
Page 4
These classes are known as Class A (for use in industrial-commercial locations only) or Class B (for use in residential or commercial locations). All National Instruments (NI) products are FCC Class A products. Depending on where it is operated, this Class A product could be subject to restrictions in the FCC rules. (In Canada, the Department of Communications (DOC), of Industry Canada, regulates wireless interference in much the same way.) Digital...
Page 8
Creating an Application with LabVIEW .......... 4-5 NI-FGEN Example Programs for LabVIEW ..... 4-5 Considerations for using the LabVIEW Real-Time Module ............4-6 Creating an Application with LabWindows/CVI ......4-7 NI-FGEN Example Programs for LabWindows/CVI ..4-7 NI PXIe-5450 User Manual ni.com...
Page 10
Resistive Matching ................5-9 Output Attenuation ......................5-10 Phase-Locked Looping....................5-11 Frequency Domain Fundamentals................. 5-12 SFDR....................... 5-12 THD ........................ 5-12 SINAD ......................5-13 ENOB......................5-13 Filtering and Interpolation..................... 5-13 Appendix A Technical Support and Professional Services NI PXIe-5450 User Manual ni.com...
NI signal generators • NI Signal Generators Help—includes detailed information about the NI 5450 and the NI-FGEN VIs and functions • NI 5450 Specifications—provides the published specification values for the NI 5450 NI PXIe-5450 User Manual ni.com...
Page 14
— Cycle 80% for 80% for square, 50% square, 50% for all other for all other User- 16,384 16,384 Variable Variable Variable 16,384 32,768 — † † † Defined samples samples samples samples Waveform Size NI PXIe-5450 User Manual ni.com...
Page 18
— Filter (automatic (automatic (maximum (maximum (maximum (maximum Interpo- for Standard for Standard lation Function Function 400 MS/s) 400 MS/s) 400 MS/s) 400 MS/s) Factor Frequency Frequency automatic automatic automatic automatic List modes) List modes) NI PXIe-5450 User Manual ni.com...
Chapter 2 NI 5450 Overview Front Panel The following figure shows the NI PXIe-5450 front panel. This front panel has two SMB connectors and six SMA connectors. NI PXIe-5450 User Manual ni.com...
Set the amplitude of the generated output signal in terms of peak voltage by setting the gain value. NI-FGEN calculates and sets the correct amount of attenuation required for the desired gain value. Configure the output signal NI PXIe-5450 User Manual ni.com...
Configure the Sample clock timebase source with the Sample Clock Timebase Source and Sample Clock Timebase Rate properties or the NIFGEN_ATTR_SAMPLE_CLOCK_TIMEBASE_SOURCE attributes. The device NIFGEN_ATTR_SAMPLE_CLOCK_TIMEBASE_RATE uses the internal sample clock timebase by default. NI PXIe-5450 User Manual ni.com...
The device has detected an error. NI-FGEN must access the device to determine the cause of the error. The LED remains red until the error condition is removed. Errors might include unlocked PLLs or an over-temperature condition. NI PXIe-5450 User Manual ni.com...
Review the guidelines in the Maintain Forced-Air Cooling Note to Users document that shipped with the product and make any necessary adjustments to ensure that the signal generator cools effectively. The thermal shutdown error continues to be reported until the device is successfully reset. NI PXIe-5450 User Manual 2-10 ni.com...
If the computer has just been powered on, reset, or the niFgen Reset Device VI or the niFgen_ResetDevice function has just been called, the device is in the default hardware state. NI PXIe-5450 User Manual 2-12 ni.com...
When the relay is enabled, the analog waveform is seen at the CH 0 +/− connector. Enable or disable the output of the analog waveform generator by using the NI PXIe-5450 User Manual 2-14 ni.com...
Note Digital gain is applied to the digital data before the data is passed to the DAC. Because relays are not used, digital gain allows glitch-free gain control at the expense of dynamic range. NI PXIe-5450 User Manual 2-16 ni.com...
The signal generator uses mechanical relays to switch between the output enable Note states. When you change a setting that causes a relay to switch, electromechanical relay bouncing interrupts the output signal for up to 10 ms. NI PXIe-5450 User Manual 2-18 ni.com...
Therefore, the allocation size of interleaved data, in bytes, is equal to (number of channels being used) (the number of samples on each channel) × × Channel 0—Sample 1 Channel 1—Sample 1 Channel 0—Sample 2 Channel 1—Sample 2 Channel 0—Sample N Channel 1—Sample N NI PXIe-5450 User Manual 2-20 ni.com...
Prefilter offset can add offset to the I and Q stream during signal generation. Change the I and Q prefilter offsets independently by setting the Pre-Filter Offset I and Pre-Filter Offset Q properties or the NIFGEN_ATTR_OSP_PRE_FILTER_OFFSET_I attributes. The offset can NIFGEN_ATTR_OSP_PRE_FILTER_OFFSET_Q NI PXIe-5450 User Manual 2-22 ni.com...
0.4. The frequency axis is scaled as a fraction of the I/Q Rate. – – – –10 – –20 – –30 – –40 – –50 –60 – – –70 –80 – –90 – – –100 Frequency (Hz) NI PXIe-5450 User Manual 2-24 ni.com...
α of 0.5. The frequency axis is scaled as a fraction of the I/Q Rate. – –10 – – –20 –30 – –40 – –50 – –60 – – –70 – –80 – –90 –100 – Frequency NI PXIe-5450 User Manual 2-26 ni.com...
OSP block. When the onboard signal processing is enabled by setting the OSP Enabled Note property or the attribute, you cannot set the Sample Rate NIFGEN_ATTR_OSP_ENABLED property or the attribute. NIFGEN_ATTR_ARB_SAMPLE_RATE NI PXIe-5450 User Manual 2-28 ni.com...
The following figure shows the behavior of the OSP block during arbitrary waveform generation. Digital Waveform Output Memory Engine Gain Onboard Signal Processing For normal arbitrary waveform generation, disable onboard signal processing by setting the OSP Enabled property or the attribute. NIFGEN_ATTR_OSP_ENABLED NI PXIe-5450 User Manual 2-30 ni.com...
(Optional) Shift the frequency by calling the Frequency Shift property or the attribute. NIFGEN_ATTR_OSP_FREQUENCY_SHIFT Download the low sample rate waveform(s) to the signal generator. Read the sample rate by calling the Sample Rate property or the attribute. NIFGEN_ATTR_ARB_SAMPLE_RATE NI PXIe-5450 User Manual 2-32 ni.com...
Sample Rate property or the attribute. NIFGEN_ATTR_ARB_SAMPLE_RATE For optimum performance, National Instruments recommends maintaining the Note sample rate between 270 MS/s and 400 MS/s due to the fixed frequency characteristics of the image rejection filter. For more information about the image rejection filter, refer to the NI 5450 specifications.
Page 57
† Calculated from sinc response and typical filter rejection for the NI 5450. Refer to the NI 5450 specifications for more information about the expected performance of the NI 5450. NI PXIe-5450 User Manual 2-34 ni.com...
Page 59
, and . The NIFGEN_ATTR_CLOCK_MODE NIFGEN_ATTR_REFERENCE_CLOCK_SOURCE values in the columns represent the values that can be set on these properties or attributes. Settings that line up horizontally show valid combinations of the NI-FGEN settings. NI PXIe-5450 User Manual 2-36 ni.com...
Page 61
CLK IN front panel connector. PXI devices can also phase–lock to a 10 MHz Reference clock signal provided by the PXI bus (PXI_CLK10). Note Refer to the device specifications for information about available signal levels on the CLK IN front panel connector. NI PXIe-5450 User Manual 2-38 ni.com...
When configuring an external Sample clock, you can set the sample rate to the exact frequency you are using to avoid data errors by calling the niFgen Set Sample Rate VI or the function. niFgen_ConfigureSampleRate NI PXIe-5450 User Manual 2-40 ni.com...
The Sample clock can be routed to the CLK OUT front panel SMA connector. Additionally, the exported clock can be divided down by an integer value (no less than 2) before being exported to the PFI <0..1> connectors, the NI PXIe-5450 User Manual 2-42 ni.com...
128 bytes. The following figure represents the total memory of a device and shows memory that was initially empty, but it now has multiple waveforms written to it, nearly filling the device memory. NI PXIe-5450 User Manual 2-46 ni.com...
Size in Bytes = 80 + (64 × 1,003) = 64,272 bytes. Size in memory = 64,272 coerced up to the next multiple of 128 = 64,284 bytes. NI PXIe-5450 User Manual 2-48 ni.com...
To make room for the waveform, you could delete Waveform 3 to create enough space in memory for Waveform 5. Waveform Waveform Waveform Free Waveform Sequence Free Memory Instructions Memory NI PXIe-5450 User Manual 2-54 ni.com...
The output mode of your signal generator determines the type of waveforms your signal generator produces. To select an output mode, set the Output Mode parameter of the niFgen Configure Output Mode VI or function. niFgen_ConfigureOutputMode NI PXIe-5450 User Manual 2-56 ni.com...
Page 81
Waveform Segment 1 shows a segment created using Waveform A, repeating, or looping, three times. Waveform Segment 2 (Loops = 2) Waveform Segment 2 contains Waveform B looping two times. Waveform Segment 3 (Loops=1) NI PXIe-5450 User Manual 2-58 ni.com...
The following are the basic steps you should use to create your script. Call the niFgen Configure Output Mode VI or the function to switch to Script mode. niFgen_ConfigureOutputMode NI PXIe-5450 User Manual 2-60 ni.com...
–1074115901 (0xBFFA4AC3): Device Data Underflow The simplest way to avoid this condition is to follow the minimum waveform size guidelines in the specifications. If these rules are followed, a data underflow error will not NI PXIe-5450 User Manual 2-62 ni.com...
Allocate Waveform VI or the function to specify the amount of niFgen_AllocateWaveform onboard memory to reserve for streaming. The allocated memory, known as the streaming waveform, serves as a buffer for the streaming NI PXIe-5450 User Manual 2-64 ni.com...
Page 89
Depending on the amount of RAM on the computer, transferring ten 16 MB blocks may be faster than transferring one 160 MB block. 160 MB 1.6 GB Waveform Write First Portion to Onboard Memory 160 MB NI PXIe-5450 User Manual 2-66 ni.com...
Page 91
1.6 GB Waveform Write Waveform Data in Blocks 160 MB 16 MB Repeat steps 5 and 6 as free space becomes available. 16 MB 1.6 GB Waveform Write Waveform Data in Blocks 160 MB 16 MB NI PXIe-5450 User Manual 2-68 ni.com...
• When using 18-slot PXI chassis, install the signal generator used for streaming in the first segment (Slots 2 to 6) of the PXI chassis. • Utilize Direct DMA. NI PXIe-5450 User Manual 2-70 ni.com...
NI 5450 Overview PXI Express Bandwidth Considerations National Instruments PXI Express signal generators use PCI Express as the interface to the computer. The physical connection between a PXI Express signal generator and a computer is called a PCI Express link. When a signal generator generates a waveform, it can saturate this link.
NI devices. When triggering your NI signal generator, you can select the type of trigger, the trigger source, and the trigger mode that you want to use. NI PXIe-5450 User Manual 2-72 ni.com...
Trigger sources are software selectable. You can use any of the following external input triggers: • PFI 0 or PFI 1 on the front panel connectors • PXI_TRIG<0..7> lines on the PXI trigger bus backplane NI PXIe-5450 User Manual 2-74 ni.com...
DC value, or you can add an extra segment filled with the same DC value. Start Trigger Last Sample of Last Segment Generated Continuously End of All Segments NI PXIe-5450 User Manual 2-76 ni.com...
After the sequence list is exhausted, the waveform generation returns to the first segment and subsequent Start triggers restart the process. Start Start Start Start Trigger Trigger Trigger Trigger Last Sample of Last Seqment Generated Continuously End of Segment NI PXIe-5450 User Manual 2-78 ni.com...
Enabling the onboard signal processing block can also introduce delay. The digital filter for the signal generator is inside the FPGA, before the Analog Note Output path. NI PXIe-5450 User Manual 2-80 ni.com...
Page 105
Up to four bits can be configured to export to any valid destination on the signal generator. Done Event The Done event indicates that the generation Level, Pulse Latched of the previous waveform is complete. NI PXIe-5450 User Manual 2-82 ni.com...
Page 107
Data Marker event level changes each time. When the data bit level is high, the Data Marker event level is high. You can invert this relationship by setting the Data Marker Event Level Polarity property or the NIFGEN_ATTR_DATA_MARKER_EVENT_LEVEL_POLARITY attribute. NI PXIe-5450 User Manual 2-84 ni.com...
Page 109
To determine all possible signal routes for your device, refer to Signal Routing. The PFI outputs have a bandwidth of 200 MHz. The PXI Trigger lines have a Note bandwidth of <50 MHz. NI PXIe-5450 User Manual 2-86 ni.com...
Page 111
In NI-FGEN, the PXI trigger lines are referred to as RTSI<0..6>. The correlation between PXI_TRIG<x> and RTSI<x> is one to one. For more information about configuring and routing the device internal signals, refer to the niFgen Export Signal VI or the function. niFgen_ExportSignal NI PXIe-5450 User Manual 2-88 ni.com...
Page 112
Accessories National Instruments offers a variety of products to use with your signal generator, including cables and other accessories. Visit for more ni.com...
Page 114
30 g, 11 ms, half-sine. It is specified to withstand shock up to 50 g, 11 ms, half-sine when not operating (shipping/storage). NI PXI and PXI Express signal generators are designed to withstand total random vibration of 0.31 g operational and 2.46 g non operational per IEC 68-2-64. NI PXIe-5450 User Manual ni.com...
Page 116
PXI. The standard implementation for CompactPCI does not include these sub-buses. NI signal generators work in any standard CompactPCI chassis. PXI-specific features, such as PXI_Trig bus and PXI_CLK10 reference are implemented on the J2 connector of the CompactPCI bus. NI PXIe-5450 User Manual ni.com...
Page 118
PFI lines on the front panel. If you enable a PFI line for output, do not connect any external signal source to Caution it; doing so can damage the device, the computer, and the connected equipment. NI PXIe-5450 User Manual ni.com...
Page 119
All Programs»National Instruments MXI-3»MXI-3 Optimization to run the application. If you continue to have initialization or performance issues, refer to the MXI-3 documentation at Start»All Programs»National Instruments MXI-3, or visit NI Technical Support at ni.com/support MXI-4 and MXI-Express Optimization Optimization for MXI-4 and MXI Express are performed automatically by the hardware.
Page 121
Calling the niFgen Close VI or the function from any niFgen_close state closes the NI-FGEN session and transitions to the close state. If the session is in the Generating state, the generation is aborted first. NI PXIe-5450 User Manual ni.com...
Page 123
To create your application, you need an industry-standard instrument driver such as NI-FGEN to control your device. NI-FGEN is IVI-compliant and works with NI LabVIEW, NI LabWindows /CVI , and conventional programming languages such as Microsoft Visual C, C++, and Visual Basic. NI PXIe-5450 User Manual ni.com...
Page 125
LabVIEW RT application: • NI PXI/PCI-5401 • NI PXI/PCI-5411 • NI PXI/PCI-5431 Unsupported Features When using the National Instruments signal generators with LabVIEW RT, the following features are not supported: • External calibration • Express VIs • FGEN Soft Front Panel Related Documentation •...
Page 127
(form definition and event handling code) .frm • (optional) (Visual Basic generic code module) .bas • (optional) (Visual Basic class module) .cls Add a reference to the National Instruments Function Generator library (NI-FGEN), which is part of by selecting niFgen_32.dll NI PXIe-5450 User Manual ni.com...
Page 128
NI-FGEN ships with several examples that demonstrate basic signal generator applications. You can access these examples through the Start menu, by navigating to Start»All Programs»National Instruments» NI-FGEN»Examples. The NI-FGEN examples assume that you are already familiar with the ADE in Note which you will be programming.
Page 129
NI-FGEN supports the device you initialize. Circumstances can arise where sending an ID query to the device is undesirable. When you set this parameter to VI_FALSE, the function initializes the device without performing an ID query. NI PXIe-5450 User Manual 4-10 ni.com...
Page 131
CVI. Call the function. Set niFgen_configureOutputMode outputMode to NIFGEN_VAL_OUTPUT_FUNC Choose the type of waveform you would like to generate and set the waveform parameter of the function to the waveform niFgen_configureStandardWaveform you have chosen. NI PXIe-5450 User Manual 4-12 ni.com...
Page 133
Call the niFgen Configure Output Mode VI with Output Mode set to Arbitrary Waveform. (Optional) Call the niFgen Clear Arbitrary Memory VI to clear any previously created arbitrary waveforms, sequences, and scripts from the signal generator memory. NI PXIe-5450 User Manual 4-14 ni.com...
Page 135
Call the function to select the active niFgen_ConfigureFreqList frequency list and configure the amplitude, DC offset, and start phase of the generation. NI PXIe-5450 User Manual 4-16 ni.com...
Page 137
B, C, and D twice (BCDBCD). The following is the script of this example: script myFirstScript wait until scriptTrigger0 repeat 3 generate waveformA marker0(16) end repeat repeat 2 generate waveformB generate waveformC generate waveformD end repeat end script NI PXIe-5450 User Manual 4-18 ni.com...
Page 139
To abort the generation to known voltage, complete the following steps: During your application, download a small, constant–amplitude waveform that corresponds to the desired output voltage. You will generate this waveform at the end of your application. NI PXIe-5450 User Manual 4-20 ni.com...
Page 143
Call the niFgen Configure Reference Clock VI with Source set to the Reference clock source. For example, set Source to “ClkIn” to obtain the Reference clock signal from the Clk In front panel connector. Set Reference Clock Frequency to the frequency of the Reference clock. NI PXIe-5450 User Manual 4-24 ni.com...
Page 145
Signal to “NIFGEN_VAL_MARKER_EVENT”. C Example Specify the position of the Marker event by setting the attribute. NIFGEN_ATTR_ARB_MARKER_POSITION Export the marker event by calling the niFgen_ExportSignal function and setting the signal parameter to “ ”. NIFGEN_VAL_MARKER_EVENT NI PXIe-5450 User Manual 4-26 ni.com...
Page 147
To determine all possible signal routes for your device, refer to Signal Routing. When exporting data markers, you must specify the signal identifier for the data Note marker using the function. niFgen_ExportSignal NI PXIe-5450 User Manual 4-28 ni.com...
Page 149
Call the function to begin the niFgen_InitiateGeneration waveform generation. Use the NIFGEN_ATTR_STREAMING_SPACE_AVAILABLE_IN_WAVEFORM attribute to determine how much of the streaming waveform is free for writing new data. NI PXIe-5450 User Manual 4-30 ni.com...
Page 151
Sample clock or routing signals. Also, the amount of time a generation takes to complete will be ignored in simulation mode; a finite generation will finish immediately after it is initiated, regardless of how much data is downloaded and how fast it is generated. NI PXIe-5450 User Manual 4-32 ni.com...
Page 154
20 points per cycle of the expected signal compared with 2 points per cycle with the slower DAC. In this example, the higher sample rate more accurately defines the waveform shape. 1 μ = Sample Rate 2 MS/s = Sample Rate 20 MS/s NI PXIe-5450 User Manual ni.com...
Page 156
= an integer (either positive or negative) As the equation indicates, there are an infinite number of these aliased images that occur. As n gets larger, however, the power content of these extra frequencies “falls off.” NI PXIe-5450 User Manual ni.com...
Page 158
153 µV. Both waveforms are composed of discrete voltage steps, but the 16-bit version looks much closer to a “pure” continuous-time sine waveform. 10.00 8.75 7.50 16-Bit 6.25 5.00 3-Bit 3.75 2.50 1.25 Time (μs) NI PXIe-5450 User Manual ni.com...
Page 160
Impedance discontinuities of smaller magnitude and/or duration have correspondingly smaller effects. Also displayed is the waveform that results when a cable of matched impedance (75 Ω) is used. NI PXIe-5450 User Manual ni.com...
Page 162
0.488 mV at the analog output connector. The attenuator allows the use of the full range of the DAC, and reduces the effective value of each bit corresponding to the degree of attenuation. NI PXIe-5450 User Manual 5-10 ni.com...
Page 164
THD is usually expressed in dB or dBc. Measurements for calculating the THD are made at the output of a device under specified conditions. NI PXIe-5450 User Manual 5-12 ni.com...
Page 166
Ideally, in an analog filter with linear group delay, all frequencies present in the signal should have the same time delay so that the signal is not distorted. NI PXIe-5450 User Manual 5-14 ni.com...
Page 168
Using two times interpolation filtering with a DAC effective sample rate of eliminates images well and generates a good signal. However, increasing the interpolation filter to 4 further improves the output signal. NI PXIe-5450 User Manual 5-16 ni.com...
Page 170
Technical Support and Professional Services Visit the following sections of the award-winning National Instruments Web site at for technical support and professional services: ni.com • Support—Technical support at includes the ni.com/support following resources: – Self-Help Technical Resources—For answers and solutions,...
Page 171
You also can visit the Worldwide Offices section of to access the branch ni.com/niglobal office Web sites, which provide up-to-date contact information, support phone numbers, email addresses, and current events. NI PXIe-5450 User Manual ni.com...
Need help?
Do you have a question about the NI PXIe-5450 and is the answer not in the manual?
Questions and answers