The NI PXI-4110 programmable power supply and NI PXI-4130 source measure unit offer the ability to simultaneously source and measure both current and voltage. Since the sourcing and measuring performed by these instruments are controlled and monitored via PC software, engineers have the flexibility to use these devices for a variety of applications beyond simple power sourcing. One simple example of such an application is using the PXI-4110 or PXI-4130 as an ohmmeter for resistance measurements. The code attached below shows how the PXI-4110 or PXI-4130 can be used to take resistance measurements in LabVIEW.
A resistance measurement consists of two main parts: 1) sourcing a constant current across a load and 2) measuring the developed voltage.
Once the measured voltage is known, Ohm’s law is used to calculate resistance:
Typically, DMMs (Digital Multimeters) provide an on-board precision current source to source the excitation needed for resistance measurements, so that their inherent voltage measurement functionality can then be used to read the voltage. For instance, the PXI-4071 DMM offers resistance measurements from 0 to 50 GΩ with 10 Ω of resolution down to 0 to 100 Ω with 10 µΩ resolution.
Although simple resistance measurements are not the intended use case for the PXI-4110 or PXI-4130, their ability to both source and measure make it capable of performing such measurements. Users that are already employing this module for other tasks can easily use the LabVIEW code example provided below to add additional functionality to their existing equipment. This is just one example of the many ways in which software defined instruments such as the PXI-4110 programmable power supply and PXI-4130 source measure unit can be used to accommodate a variety of applications.
The code consists of the following steps:
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.