background image

CALIBRATION PROCEDURE

NI 5402/5406

This document contains instructions for writing a calibration procedure for 
the NI PCI/PXI-5402/5406 arbitrary function generators. This calibration 
procedure is intended for metrology labs. 

Refer to 

ni.com/calibration

 for additional information about 

calibration solutions from National Instruments.

Contents

Conventions ............................................................................................ 2
Software Requirements ........................................................................... 3
Documentation Requirements................................................................. 4
Password ................................................................................................. 4
Calibration Interval ................................................................................. 4
Test Equipment ....................................................................................... 5
Test Conditions ....................................................................................... 5
Calibration Procedures ............................................................................ 6

Initial Setup...................................................................................... 6
Self-Calibration................................................................................ 7

MAX ......................................................................................... 7
FGEN Soft Front Panel............................................................. 7
NI-FGEN .................................................................................. 8

Verification ...................................................................................... 9

Verifying the Oscillator Frequency Accuracy.......................... 11
Verifying the Sine Wave Flatness Correction Accuracy.......... 14
Verifying the Main Path Gain and Offset Accuracy ................ 21
Verifying Square Wave Gain and Offset Accuracy ................. 30

Updating the Calibration Date and Temperature ............................. 38
Adjustment....................................................................................... 39

Adjusting the Calibration ADC ................................................ 41
Adjusting the Analog Output.................................................... 54
Adjusting the Sine Wave Flatness Correction .......................... 81
Adjusting the Oscillator Frequency .......................................... 90

Summary of Contents for NI 5402

Page 1: ...s 4 Password 4 Calibration Interval 4 Test Equipment 5 Test Conditions 5 Calibration Procedures 6 Initial Setup 6 Self Calibration 7 MAX 7 FGEN Soft Front Panel 7 NI FGEN 8 Verification 9 Verifying th...

Page 2: ...mbol is marked on a product refer to the Safety and Radio Frequency Interference Read Me First for information about precautions to take bold Bold text denotes items that you must select or click in t...

Page 3: ...EN function panel niFgen fp provides access to the available functions Calibration functions are LabVIEW VIs or C function calls in NI FGEN In this document the LabVIEW VI or NI FGEN LabVIEW Property...

Page 4: ...lished specification values for the NI 5402 5406 These documents are installed with NI FGEN You can also find the latest versions of the documentation at ni com manuals Password The default password f...

Page 5: ...e of at least 15 minutes after NI FGEN initiates a session to the board The warm up time ensures that the measurement circuitry of the NI 5402 5406 is at a stable operating temperature Table 1 Equipme...

Page 6: ...st the device calibration constants with respect to a known voltage source and update the calibration date and temperature 5 Reverification Repeat the verification process to ensure that the device is...

Page 7: ...ed by using an adjustment procedure You can initiate self calibration interactively from Measurement Automation Explorer MAX or from the FGEN Soft Front Panel SFP Alternatively you can initiate self c...

Page 8: ...session handle that will be used to identify the device in future NI FGEN calls by calling the niFgen Initialize VI Note Throughout the procedure refer to C C function call parameters for the LabVIEW...

Page 9: ...elf calibrate the NI 5402 5406 after warm up and before beginning a verification procedure You can verify the following NI 5402 5406 specifications Oscillator frequency accuracy Sine wave flatness acc...

Page 10: ...Figure 1 for the names and locations of the NI 5402 5406 front panel connectors Figure 1 NI PXI 5402 5406 and NI PCI 5402 5406 Front Panel Connectors ACCESS ACTIVE SYNC OUT PFI 0 PFI 1 NI PXI 540X REF...

Page 11: ...rn a session handle that will be used to identify the device in future NI FGEN calls by calling the niFgen Initialize VI 3 Configure the waveform by calling the niFgen Configure Standard Waveform VI L...

Page 12: ...specifications shown in Table 2 7 Abort waveform generation by calling the niFgen Abort Generation VI LabVIEW Block Diagram C C Function Call Call niFgen_Initiate Generation using the following parame...

Page 13: ...sion and all of its properties and release any memory resources NI FGEN uses by calling the niFgen Close VI 9 If any of the errors are greater than the calibration test limits perform an external Adju...

Page 14: ...ut power level measured during the generation of a 50 kHz sine wave The following figure shows the programming flow for this test Figure 2 Programming Flow for the Verification of the Sine Wave Flatne...

Page 15: ...he waveform by calling the niFgen Configure Standard Waveform VI LabVIEW Block Diagram C C Function Call Call niFgen_init using the following parameters resourceName The name of the device that you wa...

Page 16: ..._GAIN_ ANALOG_PATH 3 00 0 00 1 179400 0 13 0 4 3 NIFGEN_VAL_ FIXED_LOW_GAIN_ ANALOG_PATH 6 00 0 00 0 835000 0 13 0 4 4 NIFGEN_VAL_ FIXED_LOW_GAIN_ ANALOG_PATH 9 00 0 00 0 591100 0 13 0 4 5 NIFGEN_VAL_...

Page 17: ...all niFgen_Set AttributeViInt32 using the following parameters vi The session handle returned from niFgen_init channelName 0 attributeID NIFGEN_ATTR_ ANALOG_PATH value The Analog Path value listed in...

Page 18: ...t AttributeViReal64 using the following parameters vi The session handle returned from niFgen_init channelName 0 attributeID NIFGEN_ ATTR_POST_AMPLIFIER _ATTENUATION value The Post Amplifier Attenuati...

Page 19: ...sine wave configured for the current iteration of Table 3 at each of the frequencies listed in Table 4 LabVIEW Block Diagram C C Function Call Call niFgen_Initiate Generation using the following param...

Page 20: ...he following calculation Sine Wave Flatness Error Measured Power of Generated Sine Wave Measured Power of 50kHz Sine Wave d Repeat steps 10a through 10c for each frequency in Table 4 11 Abort waveform...

Page 21: ...f DC voltages and offsets measure the voltage with a DMM and compare the results to the error limits 1 Connect the NI 5402 5406 CH 0 front panel connector to the DMM 2 Open an instrument driver sessio...

Page 22: ...edance LabVIEW Block Diagram C C Function Call Call niFgen_ SetAttribute ViBoolean using the following parameters vi The session handle returned from niFgen_init channelName 0 attributeID NIFGEN_ATTR_...

Page 23: ...ut Impedance LabVIEW Block Diagram C C Function Call Call niFgen_Set AttributeViInt32 using the following parameters vi The session handle returned from niFgen_init channelName 0 attributeID NIFGEN_AT...

Page 24: ...fine User Standard Waveform VI LabVIEW Block Diagram C C Function Call Call niFgen_ ConfigureStandard Waveform using the following parameters vi The session handle returned from niFgen_init channelNam...

Page 25: ...5 0 011088 0 037175 8 0 0 07 6 965 6 965 0 011088 0 037175 9 0 0 07 4 965 4 965 0 008087 0 027175 10 0 0 07 4 965 4 965 0 008087 0 027175 11 0 0 07 3 465 3 465 0 005837 0 019675 12 0 0 07 3 465 3 465...

Page 26: ...0 00228 39 0 0 012 0 029 0 029 0 000567 0 002205 40 0 0 012 0 029 0 029 0 000567 0 002205 41 0 0 012 0 019 0 019 0 000553 0 002155 42 0 0 012 0 019 0 019 0 000553 0 002155 43 0 0 012 0 014 0 014 0 000...

Page 27: ...ion Call Call niFgen_Set AttributeViReal64 using the following parameters vi The session handle returned from niFgen_init channelName 0 attributeID NIFGEN_ ATTR_FUNC_AMPLITUDE value The Amplitude valu...

Page 28: ...r positive full scale using the following formula DC Error Measured DC Output Ideal DC Output 17 Compare the DC Error to the calibration test limits and the published specifications LabVIEW Block Diag...

Page 29: ...d release any memory resources NI FGEN uses by calling the niFgen Close VI 20 If any of the errors are greater than the calibration test limits perform an Adjustment LabVIEW Block Diagram C C Function...

Page 30: ...and return a session handle that will be used to identify the device in future NI FGEN calls by calling the niFgen Initialize VI 3 Set the load impedance by calling the niFgen Property Node and select...

Page 31: ...e returned from niFgen_init channelName 0 attributeID NIFGEN_ATTR_OUTPUT_ IMPEDANCE value 50 00 Table 6 Values for Verifying Square Wave Gain and Offset Accuracy Iteration AnalogStatic Value Amplitude...

Page 32: ...0045 29 7FFF 0 3 0 0 15 0 0013 0 0035 30 FFFF8000 0 3 0 0 15 0 0013 0 0035 31 7FFF 0 2 0 0 1 0 0012 0 003 32 FFFF8000 0 2 0 0 1 0 0012 0 003 33 7FFF 0 14 0 0 07 0 00114 0 0027 34 FFFF8000 0 14 0 0 07...

Page 33: ...0 0085 0 0395 57 7FFF 3 5 1 75 3 5 0 00625 0 02825 58 FFFF8000 3 5 1 75 3 5 0 00625 0 02825 59 7FFF 2 5 1 25 2 5 0 00475 0 02075 60 FFFF8000 2 5 1 25 2 5 0 00475 0 02075 61 7FFF 2 1 2 0 004 0 017 62...

Page 34: ...25 0 05 0 001075 0 002375 85 7FFF 0 035 0 0175 0 035 0 001053 0 0022625 86 FFFF8000 0 035 0 0175 0 035 0 001053 0 0022625 87 7FFF 0 025 0 0125 0 025 0 001038 0 0021875 88 FFFF8000 0 025 0 0125 0 025 0...

Page 35: ...ureStandard Waveform using the following parameters vi The session handle returned from niFgen_init channelName 0 waveform NIFGEN_ VAL_WFM_SQUARE frequency 1 000 000 amplitude The Amplitude value for...

Page 36: ...Initiate waveform generation by calling the niFgen Initiate Generation VI 9 Wait 200 ms for the output to settle 10 Use the DMM to measure the DC voltage output of the NI 5402 5406 This is the measur...

Page 37: ...iver session destroy the instrument driver session and all of its properties and release any memory resources NI FGEN uses by calling the niFgen Close VI 15 If any of the errors are greater than the c...

Page 38: ...VI 2 Close the instrument driver session and save the calibration date and temperature to the onboard EEPROM by calling the niFgen Close Ext Cal VI LabVIEW Block Diagram C C Function Call Call niFgen...

Page 39: ...flatness correction Calibration ADC adjustment characterizes the onboard ADC gain and offset so that self calibration results in an accurately calibrated device Oscillator frequency adjustment charac...

Page 40: ...xternal calibration procedure Figure 3 NI 5402 5406 External Calibration Procedure Initialize Analog Output Calibration Adjust Main Path Pre Amp Offset Adjust Main Path Pre Amp Gain Adjust Main Path P...

Page 41: ...ctor to a DMM 2 Open an NI FGEN external calibration session by calling the niFgen Init Ext Cal VI 3 Initialize ADC calibration by calling niFgen Initialize Cal ADC Calibration VI LabVIEW Block Diagra...

Page 42: ...iagram C C Function Call Call niFgen_Set AttributeViInt32 using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attributeID NIFGEN_ATTR_ ANALOG_PATH value...

Page 43: ...g Filter Enabled LabVIEW Block Diagram C C Function Call Call niFgen_Set AttributeViInt32 using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attributeID...

Page 44: ...r Attenuation LabVIEW Block Diagram C C Function Call Call niFgen_Set AttributeViReal64 using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attributeID N...

Page 45: ...ion Output Enabled LabVIEW Block Diagram C C Function Call Call niFgen_Set AttributeViReal64 using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attribut...

Page 46: ...EW Block Diagram C C Function Call Call niFgen_Write Binary16Analog StaticValue using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 value 27 232 LabVIEW...

Page 47: ...ction Call Call niFgen_Commit using the following parameter vi The session handle returned from niFgen_InitExtCal LabVIEW Block Diagram C C Function Call Call niFgen_Read CalADC using the following pa...

Page 48: ...M to measure the NI 5402 5406 output voltage This measurement is external measurement 0 which is used in step 30 LabVIEW Block Diagram C C Function Call Call niFgen_Set AttributeViBoolean using the fo...

Page 49: ...ration Output Enabled LabVIEW Block Diagram C C Function Call Call niFgen_Write Binary16Analog StaticValue using the following parameters vi The session handle returned from niFgen_InitExtCal channelN...

Page 50: ...ll niFgen_Commit using the following parameter vi The session handle returned from niFgen_InitExtCal LabVIEW Block Diagram C C Function Call Call niFgen_Read CalADC using the following parameters vi T...

Page 51: ...29 Use the DMM to measure the NI 5402 5406 output voltage This measurement is external measurement 1 which is used in step 30 LabVIEW Block Diagram C C Function Call Call niFgen_Set AttributeViBoolea...

Page 52: ...n_Cal AdjustCalADC using the following parameters vi The session handle returned from niFgen_InitExtCal voltagesMeasured Externally external measurement 0 external measurement 1 voltagesMeasured WithC...

Page 53: ...ce by calling the niFgen Commit VI LabVIEW Block Diagram C C Function Call Call niFgen_Set AttributeViInt32 using the following parameters vi The session handle returned from niFgen_InitExtCal channel...

Page 54: ...rements to NI FGEN which determines the calibration constants for the device LabVIEW Block Diagram C C Function Call Call niFgen_CloseExtCal using the following parameters vi The session handle return...

Page 55: ...alog output calibration by calling the niFgen Initialize Analog Output Calibration VI LabVIEW Block Diagram C C Function Call Call niFgen_Init ExtCal using the following parameters resourceName The na...

Page 56: ...IEW Block Diagram C C Function Call Call niFgen_Write Binary16Analog StaticValue using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 value 0 LabVIEW Bloc...

Page 57: ...fset DAC Value LabVIEW Block Diagram C C Function Call Call niFgen_Set AttributeViInt32 using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attributeID N...

Page 58: ...nuation LabVIEW Block Diagram C C Function Call Call niFgen_ SetAttribute ViBoolean using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attributeID NIFGE...

Page 59: ...tes Load Impedance LabVIEW Block Diagram C C Function Call Call niFgen_Set AttributeViReal64 using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attribut...

Page 60: ...calling the niFgen Commit VI LabVIEW Block Diagram C C Function Call Call niFgen_Set AttributeViInt32 using the following parameters vi The session handle returned from niFgen_InitExtCal channelName...

Page 61: ...nnelName 0 value 0 Table 7 Attributes and Values for Main Path Pre Amplifier Offset Iteration Analog Filter Enable Pre Amplifier Attenuation dB Current Configuration 1 VI_FALSE 0 NIFGEN_VAL_CAL_CONFIG...

Page 62: ...ttribute ViBoolean using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attributeID NIFGEN_ATTR_ANALOG_ FILTER_ENABLED value The Analog Filter Enable valu...

Page 63: ...ling the niFgen Property Node and selecting Calibration Offset DAC Value LabVIEW Block Diagram C C Function Call Call niFgen_Set AttributeViInt32 using the following parameters vi The session handle r...

Page 64: ...5 f Set the gain DAC value by calling the niFgen Property Node and selecting Calibration Gain DAC Value LabVIEW Block Diagram C C Function Call Call niFgen_Commit using the following parameter vi The...

Page 65: ...ed in step 5 j Set the offset DAC value by calling the niFgen Property Node and selecting Calibration Offset DAC Value LabVIEW Block Diagram C C Function Call Call niFgen_Commit using the following pa...

Page 66: ...t Main Path Pre Amp Offset VI LabVIEW Block Diagram C C Function Call Call niFgen_Commit using the following parameter vi The session handle returned from niFgen_InitExtCal LabVIEW Block Diagram C C F...

Page 67: ...and selecting Calibration Offset DAC Value LabVIEW Block Diagram C C Function Call Call niFgen_Write Binary16Analog StaticValue using the following parameters vi The session handle returned from niFg...

Page 68: ...ONFIG_MAIN_PATH_FILTER_OFF_3DB 3 VI_FALSE 6 NIFGEN_VAL_CAL_CONFIG_MAIN_PATH_FILTER_OFF_6DB 4 VI_FALSE 9 NIFGEN_VAL_CAL_CONFIG_MAIN_PATH_FILTER_OFF_9DB 5 VI_FALSE 12 NIFGEN_VAL_CAL_CONFIG_MAIN_PATH_FIL...

Page 69: ...and selecting Calibration Gain DAC Value LabVIEW Block Diagram C C Function Call Call niFgen_Set AttributeViReal64 using the following parameters vi The session handle returned from niFgen_InitExtCal...

Page 70: ...e the DMM to measure the NI 5402 5406 output voltage This measurement is measurement 0 which is used in step 6 LabVIEW Block Diagram C C Function Call Call niFgen_Write Binary16Analog StaticValue usin...

Page 71: ...log Static Value VI LabVIEW Block Diagram C C Function Call Call niFgen_Set AttributeViInt32 using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attribut...

Page 72: ...just Main Path Pre Amp Gain VI LabVIEW Block Diagram C C Function Call Call niFgen_Commit using the following parameter vi The session handle returned from niFgen_InitExtCal LabVIEW Block Diagram C C...

Page 73: ...and selecting Standard Function Output Waveform LabVIEW Block Diagram C C Function Call Call niFgen_Write Binary16Analog StaticValue using the following parameters vi The session handle returned from...

Page 74: ...tenuation LabVIEW Block Diagram C C Function Call Call niFgen_ SetAttribute ViBoolean using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attributeID NIF...

Page 75: ...Amplifier Gain and Offset Iteration Analog Path Post Amp Attenuation dB Current Configuration 1 NIFGEN_VAL_FIXED_LOW_GAIN_ ANALOG_PATH 0 NIFGEN_VAL_CAL_CONFIG_MAIN_PATH_ LOW_GAIN_0DB 2 NIFGEN_VAL_FIXE...

Page 76: ...AttributeViInt32 using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attributeID NIFGEN_ATTR_ ANALOG_PATH value The Analog Path value for the current it...

Page 77: ...g the niFgen Commit VI c Wait 500 ms for the output to settle d Use the DMM to measure the NI 5402 5406 output voltage This measurement is measurement 0 which is used in step 9 LabVIEW Block Diagram C...

Page 78: ...MM to measure the NI 5402 5406 output voltage This measurement is measurement 1 which is used in step 9 LabVIEW Block Diagram C C Function Call Call niFgen_Set AttributeViInt32 using the following par...

Page 79: ...et VI LabVIEW Block Diagram C C Function Call Call niFgen_Cal AdjustMainPath PostAmpGainAnd Offset using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 co...

Page 80: ...xtCal action If the external adjustment procedure completed without any errors use NIFGEN_VAL_EXT_CAL_ COMMIT This function then stores the new calibration constants updated calibration dates updated...

Page 81: ...CH 0 front panel connector to a power meter 2 Open an NI FGEN external calibration session by calling the niFgen Init Ext Cal VI 3 Initialize flatness calibration by calling the niFgen Initialize Flat...

Page 82: ...ction Call Call niFgen_Set AttributeViBoolean using the following parameters vi The session handle returned from niFgen_ InitExtCal channelName 0 attributeID NIFGEN_ ATTR_FLATNESS_ CORRECTION_ENABLED...

Page 83: ...ANALOG_PATH 6 00 0 00 0 850000 NIFGEN_VAL_CAL_ CONFIG_LOW_GAIN_PATH_ PRE_AMP_6DB 4 NIFGEN_VAL_FIXED_ LOW_GAIN_ ANALOG_PATH 9 00 0 00 0 600000 NIFGEN_VAL_CAL_ CONFIG_LOW_GAIN_PATH_ PRE_AMP_9DB 5 NIFGEN...

Page 84: ...AttributeViInt32 using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attributeID NIFGEN_ATTR_ ANALOG_PATH value The Analog Path value for the current ite...

Page 85: ...ll niFgen_Set AttributeViReal64 using the following parameters vi The session handle returned from niFgen_InitExtCal channelName 0 attributeID NIFGEN_ ATTR_PRE_AMPLIFIER_ ATTENUATION value The Pre Amp...

Page 86: ...for each iteration in Table 10 LabVIEW Block Diagram C C Function Call Call niFgen_Initiate Generation using the following parameter vi The session handle returned from niFgen_InitExtCal Table 11 Fre...

Page 87: ...b for each frequency in Table 11 12 Abort waveform generation by calling the niFgen Abort Generation VI LabVIEW Block Diagram C C Function Call Call niFgen_Set AttributeViReal64 using the following pa...

Page 88: ...ters vi The session handle returned from niFgen_InitExtCal frequenciesArray An array of the frequencies from Table 11 configuration The Current Configuration value for the current iteration from Table...

Page 89: ...niFgen_InitExtCal action If the external adjustment procedure completed without any errors use NIFGEN_VAL_EXT_CAL_ COMMIT This function then stores the new calibration constants updated calibration d...

Page 90: ...onnector to the frequency counter 2 Open an NI FGEN external calibration session by calling the niFgen Init Ext Cal VI 3 Initialize oscillator frequency calibration by calling the niFgen Initialize Os...

Page 91: ...waveform This value is the first measured frequency that is used in step 7b LabVIEW Block Diagram C C Function Call Call niFgen_ ConfigureStandard Waveform using the following parameters vi The sessio...

Page 92: ...Abort Generation VI b Adjust the oscillator frequency by calling the niFgen Cal Adjust Oscillator Frequency VI LabVIEW Block Diagram C C Function Call Call niFgen_Abort Generation using the following...

Page 93: ...he difference between the measured frequency and the desired frequency 10 MHz is less than or equal to the tolerance 4 5 ppm 8 Abort waveform generation by calling the niFgen Abort Generation VI LabVI...

Page 94: ...nitExtCal action If the external adjustment procedure completed without any errors use NIFGEN_VAL_EXT_CAL_ COMMIT This function stores the new calibration constants updated calibration dates updated c...

Page 95: ...cations for a full calibration interval two years For this reason you must verify against the calibration test limits when performing verification after adjustment Published specification values are l...

Page 96: ...complete calibration procedure you verify that the output error falls within the calibration test limits Figure 4 shows the programming flow for complete calibration Figure 4 Complete Calibration Pro...

Page 97: ...ffectively resetting the calibration interval without actually performing an adjustment Refer to the Updating the Calibration Date and Temperature section for more information about this process If al...

Page 98: ...ts Calibration Test Limits Meets Published Specifications Update Calibration Dates and Temperatures Without Adjusting Results Within Published Specs Adjustment Optional Adjust Anyway Adjust Cal Dates...

Page 99: ...ng steps 1 Launch MAX 2 Navigate to My System Devices and Interfaces NI DAQmx Devices and select the device from which you want to retrieve information 3 Select the Calibration Tab on the lower right...

Page 100: ...Cal Last Temp niFgen Read Current Temp niFgen Get Ext Cal Last Date and Time niFgen Get Ext Cal Last Temp niFgen Get Cal User Defined Info niFgen Set Cal User Defined Info niFgen Change Ext Cal Passw...

Page 101: ...nal Instruments also has offices located around the world to help address your support needs For telephone support in the United States create your service request at ni com support and follow the cal...

Reviews: