SMU Not Self-Calibrating While Using .NET C# API of NI-DCPower

Updated Jun 20, 2024

Reported In

Hardware

  • PXI Source Measure Unit

Issue Details

I'm working with a PXIe SMU and I'm using the Self-Calibration function of NI-DC Power in .NET C#, and I experience the following behavior:
  • After running the Self-Calibration function, the last Self-Calibration date is not updated, and the function executes immediately. On the other hand, while running Self-Calibration in NI-MAX, the module self-calibrates successfully and the last self-calibration date is updated. 

Solution

This issue has been observed when using deprecated constructors, which are used when a new NI-DCPower session is created in the .NET C# API.

Here you can see the list of constructors, showing which are deprecated and which are updated: Constructors After using an updated constructor, running SelfCalibration function from the .NET C# API should work for the SMU and update the Last Calibration date of the module in NI-MAX. 

Additional Information

  • You can also check the .NET examples located in: C:\Users\Public\Documents\National Instruments\NI-DCPower\Examples\DotNET 4.5\Single Point. This way you can see how the constructor is used in the code. 
  • For some modules like the PXIe-414x, the self-calibration function in the API can be faster that using the button in NI-MAX, for others modules it may take a similar execution time. This is because NI-DCPower only runs the necessary functions to perform the self-calibration depending on the module, while NI-MAX always runs a sequence of functions that can make the self-calibration last longer, regardless of the module.