background image

30 

|

 ni.com 

|

  NI 5421/5441 Calibration Procedure

10. Call 

niFgen_ConfigureSampleRate

 (niFgen Set Sample Rate VI) using the following 

parameters:

vi

: The session handle returned from 

niFgen_init

Sample Rate

: 100 MS/s (

100000000

)

Repeat steps 11 through 20 for each iteration in Table 9, changing the 

Number of Samples

 and 

Number of Cycles

 for each iteration.

11. Create an array of waveform samples. Each waveform should have samples and cycles that 

correspond to the current iteration in Table 9.

12. (LabVIEW Only) You must call the Sine Pattern VI to create the array of waveform 

samples for step 11. Specify an 

amplitude

 of 1, and 

samples

 and 

cycles

 that correspond to 

the current iteration in Table 9. Wire the 

Sinusoidal Pattern

 output of the Sine Pattern VI 

to the 

Waveform Data Array

 input of the niFgen Create Waveform (DBL) VI in step 13.

13. Call 

niFgen_CreateWaveformF64

 (niFgen Create Waveform (DBL) VI) using the 

following parameters:

vi

: The session handle returned from 

niFgen_init

channelName

"0"

wfmSize

: The size in samples of the waveform that you created in step 11 or step 12.

wfmArray

: The array of waveform samples from step 11 or step 12 (double 

representation)

Table 9.  

NI 5421/5441 Setup for Direct Analog Path Flatness Verification 

Iteration

Frequency

Number of Samples

Number of 

Cycles

Published Specification

1

50 kHz

2,000

1

REF

2

100 kHz

1,000

1

- 0.4 dB to +0.3 dB

3

1 MHz

1,000

10

- 0.4 dB to +0.3 dB

4

5 MHz

1,000

50

- 0.4 dB to +0.3 dB

5

10 MHz

1,000

100

- 0.4 dB to +0.3 dB

6

15 MHz

1,000

150

-0.4 dB to + 0.4 dB

7

20 MHz

1,000

200

-0.4 dB to + 0.4 dB

8

25 MHz

1,000

250

- 0.4 dB to +0.6 dB

9

30 MHz

1,000

300

- 0.4 dB to +0.6 dB

10

35 MHz

1,000

350

- 0.4 dB to +0.6 dB

11

40 MHz

1,000

400

- 0.4 dB to +0.6 dB

12

43 MHz

1,000

430

-3.0 dB to +0.6 dB

Summary of Contents for 5421

Page 1: ...4 NI FGEN 4 Calibration Options 5 Calibration Requirements 5 Test Equipment 5 Test Conditions 7 System Setup 7 Calibration Procedures 7 Verifying NI 5421 5441 Specifications 7 Verifying the Oscillato...

Page 2: ...iFgen h file To use these constants in C you must include niFgen h in your code when you write the calibration procedure Refer to the following table for file locations The calibration process is desc...

Page 3: ...d during self calibration You can initiate self calibration interactively from Measurement Automation Explorer MAX or from the FGEN Soft Front Panel SFP Alternatively you can initiate self calibration...

Page 4: ...Click Perform self calibration NI FGEN To self calibrate the NI 5421 5441 programmatically using NI FGEN complete the following steps 1 Call niFgen_init niFgen Initialize VI to open an NI FGEN session...

Page 5: ...within the calibration test limits the device is guaranteed to meet or exceed its published specifications for a full calibration interval two years For this reason you must verify against the calibr...

Page 6: ...nce 1 G ACV accuracy 0 16 AC input impedance 1 M Bandwidth 100 kHz Male banana to female BNC adapter Male BNC to female SMB cable 50 RG 223 Frequency counter Agilent HP 53131A or HP 53132A with timeba...

Page 7: ...the NI 5421 5441 adjusting the calibration constants and re verifying performance after the adjustments In some cases the complete calibration procedure may not be required Refer to the Calibration O...

Page 8: ...r the names and locations of the NI PXI 5421 5441 and the NI PCI 5421 front panel connectors The NI PXI 5421 5441 is pictured on the left The NI PCI 5421 is pictured on the right Figure 1 NI PXI 5421...

Page 9: ...A pointer to a ViSession The variable passed by reference through this parameter receives the value that identifies the session created by this function This value acts as the session handle and is pa...

Page 10: ...a total of 500 samples and 50 sine wave cycles Because you set the sample rate to 100 MS s and use 10 samples per cycle the resulting waveform is a 10 MHz sine wave Note The sample values of this wave...

Page 11: ...r of DC voltages and offsets measuring the voltage with a DMM and comparing the NI 5421 5441 to the error limits The DC gain and offset accuracy verification procedure has three subprocedures that ver...

Page 12: ...ANALOG_PATH 6 Call niFgen_SetAttributeViReal64 to set the output impedance NI FGEN Output Impedance property using the following parameters vi The session handle returned from niFgen_init channelName...

Page 13: ...niFgen Create Waveform DBL VI in step 13 13 Call niFgen_CreateWaveformF64 niFgen Create Waveform DBL VI using the following parameters vi The session handle returned from niFgen_init wfmSize The size...

Page 14: ...05000 0 105000 0 105000 0 000920 0 000668 17 0 075000 0 075000 0 075000 0 000800 0 000620 18 0 055000 0 055000 0 055000 0 000720 0 000588 19 0 037500 0 037500 0 037500 0 000650 0 000560 20 0 026000 0...

Page 15: ...421 5441 This value is the Measured Positive Full Scale Value 19 Determine the error for positive full scale using the following formula Error Positive Full Scale Measured Positive Full Scale Value Id...

Page 16: ...the element input and specify a dimension size of 500 Wire the initialized array output of the Initialize Array function to the Waveform Data Array input of the niFgen Create Waveform DBL VI in step...

Page 17: ...00 0 425000 0 004113 0 001988 11 0 600000 0 300000 0 300000 0 003050 0 001550 12 0 415000 0 207500 0 207500 0 002264 0 001226 13 0 300000 0 150000 0 150000 0 001775 0 001025 14 0 205000 0 102500 0 102...

Page 18: ...e error for positive offset using the following formula Error Positive Offset Measured Positive Offset Value Ideal Positive Offset Value Compare this error to the calibration limits listed in Table 5...

Page 19: ...nit channelName 0 attributeID NIFGEN_ATTR_ARB_OFFSET value 0 2 Call niFgen_SetAttributeViInt32 to set the analog path NI FGEN Analog Path property using the following parameters vi The session handle...

Page 20: ...5441 This value is the Measured Positive Full Scale Value 7 Call niFgen_AbortGeneration niFgen Abort Generation VI to abort the waveform generation using the following parameter vi The session handle...

Page 21: ...ter than the calibration limits listed in Table 6 perform an external adjustment 16 Call niFgen_close niFgen Close VI to close the instrument driver session to destroy the instrument driver session an...

Page 22: ...T_ARB Arbitrary Waveform 7 Create an array of waveform samples The waveform array should contain a single cycle sine wave of 2 000 samples and an amplitude of 1 8 LabVIEW Only You must call the niFgen...

Page 23: ...5 1 166726 0 012374 0 024042 9 1 250000 5 0 883883 0 009546 0 018385 10 0 850000 5 0 601041 0 006718 0 012728 11 0 600000 0 5 0 424264 0 004950 0 009192 12 0 415000 0 5 0 293449 0 003642 0 006576 13 0...

Page 24: ...iteration 13 Call niFgen_InitiateGeneration niFgen Initiate Generation VI using the following parameter vi The session handle returned from niFgen_init 14 Wait 5 seconds for the output of the NI 5421...

Page 25: ...ssion The variable passed by reference through this parameter receives the value that identifies the session created by this function This value acts as the session handle and is passed as the first p...

Page 26: ...10 Call niFgen_ConfigureSampleRate niFgen Set Sample Rate VI using the following parameters vi The session handle returned from niFgen_init Sample Rate 100 MS s 100000000 Repeat steps 11 through 20 f...

Page 27: ...ter to a waveform The variable passed by reference through this parameter acts as a handle to the waveform and can be used for setting the active waveform changing the data in the waveform building se...

Page 28: ...eviation from the reference 50 kHz power using the following equation 20 Compare the Flatness dB calculated in step 19 to the Published Specification value for the current amplifier path listed in Tab...

Page 29: ...Call niFgen_SetAttributeViReal64 to set the offset NI FGEN Offset property using the following parameters vi The session handle returned from niFgen_init channelName 0 attributeID NIFGEN_ATTR_ARB_OFF...

Page 30: ...Data Array input of the niFgen Create Waveform DBL VI in step 13 13 Call niFgen_CreateWaveformF64 niFgen Create Waveform DBL VI using the following parameters vi The session handle returned from niFg...

Page 31: ...all niFgen_SetAttributeViReal64 to set the digital filter interpolation factor NI FGEN Digital Filter Interpolation Factor property using the following parameters vi The session handle returned from n...

Page 32: ...e you want to calibrate This name can be found under Devices and Interfaces in MAX password The password required to open an external calibration session If this password has not been changed since ma...

Page 33: ...xt Cal VI as shown in the following figure Figure 2 NI 5421 5441 External Calibration Procedure Adjusting the Analog Output The analog output adjustment procedure has several subprocedures that adjust...

Page 34: ...NI FGEN Analog Path property using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attributeID NIFGEN_ATTR_ANALOG_PATH value NIFGEN_VAL_FIXED_LOW_GAIN_ANA...

Page 35: ...tributeID NIFGEN_ATTR_OUTPUT_IMPEDANCE value 50 10 Call niFgen_SetAttributeViBoolean to enable the analog output NI FGEN Output Enabled property using the following parameters vi The session handle re...

Page 36: ...ollowing parameters vi The session handle returned from niFgen_InitExtCal channelName 0 Table 10 Attributes and Values for Main Analog Path Preamplifier Offset Iteration Analog Filter Enable Preamplif...

Page 37: ...teID NIFGEN_ATTR_GAIN_DAC_VALUE value 2000 b Call niFgen_SetAttributeViInt32 to set the offset DAC value NI FGEN Offset DAC Value property using the following parameters vi The session handle returned...

Page 38: ..._InitExtCal channelName 0 configuration The Current Configuration value for the current iteration from Table 10 gainDACValues An array containing two elements the two values 2000 1000 that you set as...

Page 39: ...ty using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 Table 11 Attributes and Values for Main Analog Path Preamplifier Gain Iteration Analog Filter Enab...

Page 40: ...GEN_ATTR_GAIN_DAC_VALUE value 1500 b Call niFgen_WriteBinary16AnalogStaticValue niFgen Write Binary 16 Analog Static Value VI to set the main DAC value using the following parameters vi The session ha...

Page 41: ...order that you measured them offsetDACValues An array containing one element the value 32000 that you set for the offset DAC measuredOutputs An array containing two elements the two output voltages m...

Page 42: ...and Values for the Main Analog Path Postamplifier Gain and Offset Iteration Analog Path Post amplifier Attenuation Current Configuration 1 NIFGEN_VAL_FIXED_ LOW_GAIN_ANALOG_PATH 0 NIFGEN_VAL_CAL_ CONF...

Page 43: ...ll niFgen_Commit niFgen Commit VI to commit the attribute values to the device using the following parameter vi The session handle returned from niFgen_InitExtCal c Wait 500 ms for the output to settl...

Page 44: ...ll niFgen_SetAttributeViInt32 to set the gain DAC value NI FGEN Gain DAC Value property using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attributeID N...

Page 45: ...BLED value VI_TRUE 9 Call niFgen_SetAttributeViInt32 to set the analog path value NI FGEN Analog Path property using the following parameters vi The session handle returned from niFgen_InitExtCal chan...

Page 46: ...tput to settle i Use the DMM to measure the voltage generated by the device This measurement is measurement 1 which is used in step 12 j Call niFgen_WriteBinary16AnalogStaticValue niFgen Write Binary...

Page 47: ...C in order measuredOutputs An array containing four elements the four output voltages measurement 0 measurement 1 measurement 2 measurement 3 that you measured in order Adjusting the Oscillator Freque...

Page 48: ...using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attributeID NIFGEN_ATTR_ANALOG_FILTER_ENABLED value VI_TRUE 6 Call niFgen_SetAttributeViBoolean to se...

Page 49: ...meter receives the value waveform handle that identifies the waveform created by this function 12 Call niFgen_SetAttributeViInt32 to choose the sine waveform NI FGEN Arbitrary Waveform Handle property...

Page 50: ...ADC used during self calibration To adjust the calibration ADC characterize the gain and offset associated with this ADC so that a self calibration results in an accurately calibrated device 1 Call n...

Page 51: ...ibuteID NIFGEN_ATTR_PRE_AMPLIFIER_ATTENUATION value 0 8 Call niFgen_SetAttributeViReal64 to set the postamplifier attenuation NI FGEN Post Amplifier Attenuation property using the following parameters...

Page 52: ...t niFgen Commit VI to commit the attribute values to the device using the following parameter vi The session handle returned from niFgen_InitExtCal 17 Wait 500 ms for the output to settle 18 Call niFg...

Page 53: ...0 ms for the output to settle 27 Call niFgen_ReadCalADC niFgen Read CAL ADC VI to measure the analog output voltage with the onboard calibration ADC using the following parameters vi The session handl...

Page 54: ...rs vi The session handle returned from niFgen_InitExtCal channelName empty string attributeID NIFGEN_ATTR_CAL_ADC_INPUT value NIFGEN_VAL_GROUND 35 Call niFgen_Commit niFgen Commit VI to commit the att...

Page 55: ...erature for both external and self calibration FGEN SFP To retrieve data using the FGEN SFP complete the following steps 1 Launch the FGEN SFP 2 Select the device from which you want to retrieve infor...

Page 56: ...resource for technical support At ni com support you have access to everything from troubleshooting and application development self help resources to email and phone assistance from NI Application E...

Reviews: