NI-VNA

Performing a Manual TRL (2-Port, 2-Path) Calibration

  • Updated2023-02-21
  • 1 minute(s) read
  1. Configure the device for the final measurement you will be taking.
  2. Configure the reference plane location and number of bands (one or two).
  3. Configure the attributes of each standard that will you will use.
  4. Configure the list of standards used for each band and the band breakpoint.
  5. Call niVNA_InitUserCal(vi, "0", NIVNA_VAL_CALIBRATION_TYPE_TRL).
  6. Connect standard1 to PORT 1 and PORT 2.
  7. Call niVNA_PerformTRLCalibrationAction(vi, "port1, port2", "standard1").
  8. Call niVNA_WaitForCalibrationActionDone(vi, "0", <timeout>).
  9. Connect standard4 to PORT 1 and PORT 2.
  10. Call niVNA_PerformTRLCalibrationAction(vi, "port1, port2", "standard4").
  11. Call niVNA_WaitForCalibrationActionDone(vi, "0", <timeout>).
  12. Connect standard2 to PORT 1.
  13. Call niVNA_PerformTRLCalibrationAction(vi, "port1", "standard2").
  14. Call niVNA_WaitForCalibrationActionDone(vi, "0", <timeout>).
  15. Connect standard2 to PORT 2.
  16. Call niVNA_PerformTRLCalibrationAction(vi, "port2", "standard2").
  17. Call niVNA_WaitForCalibrationActionDone(vi, "0", <timeout>).
  18. If using two bands, continue with the calibration by performing the following steps, otherwise continue to Step 20.
    1. Connect standard3 to PORT 1.
    2. Call niVNA_PerformTRLCalibrationAction(vi, "port1", "standard3").
    3. Call niVNA_WaitForCalibrationActionDone(vi, "0", <timeout>).
    4. Connect standard3 to PORT 2.
    5. Call niVNA_PerformTRLCalibrationAction(vi, "port2", "standard3").
    6. Call niVNA_WaitForCalibrationActionDone(vi, "0", <timeout>).
  19. If the calibration has been successful to this point and you wish to apply the new calibration, call niVNA_CloseUserCal(vi, "0", NIVNA_VAL_USER_CALIBRATION_COMMIT). Otherwise, call niVNA_CloseUserCal(vi, "0", NIVNA_VAL_USER_CALIBRATION_ABORT).
  20. To store the current configuration and calibration settings to a file, call niVNA_SaveCalibrationAndConfigurationDataToFile(vi, "0", <filepath>, VI_TRUE).