Source Measure Unit¶
Auto-generated from driver source.
NI PXIe-4139¶
NI PXIe-4139 single-channel source measure unit (uses nidcpower).
NI_PXIe_4139 ¶
Driver for the NI PXIe-4139 SMU via nidcpower.
Exposes the same PSU-like interface that the REPL expects so it can be used interchangeably with SCPI-based power supplies.
Key nidcpower pattern: property changes (voltage_level, output_enabled) must be applied while the session is initiated (running). Set properties on-the-fly FIRST, then abort() to stop.
connect ¶
Open an nidcpower session and configure safe defaults.
The session is left in the Running state with output disabled. All subsequent property changes (voltage_level, output_enabled, etc.) are applied via commit() while running — NI-DCPower requires this. If the device is in OLP (Overload Protection), the session is opened with relaxed options to clear the latched state first.
enable_output ¶
Enable or disable the output. Session stays Running.
disable_all_channels ¶
Set output to safe state: 0 V, low current limit, output off.
set_current_limit ¶
Set the current limit (compliance magnitude, always positive).
set_output_channel ¶
Set voltage and current limit (channel arg ignored — single channel).
measure_vi ¶
Atomic V+I+compliance measurement in a single session call.
Returns:
| Type | Description |
|---|---|
dict
|
dict with keys 'voltage' (float), 'current' (float), |
dict
|
'in_compliance' (bool). |
query_in_compliance ¶
Return True if the output has hit the compliance limit.
set_source_delay ¶
Set the source settle delay before measurement (0 to 167 seconds).
set_voltage_mode ¶
Switch to DC_VOLTAGE mode and set the voltage level.
set_current_mode ¶
Switch to DC_CURRENT mode and set the current level.
set_samples_to_average ¶
Set the averaging count for noise reduction (n >= 1).
get_samples_to_average ¶
Return the current samples_to_average setting.
read_temperature ¶
Read the SMU instrument temperature in degrees Celsius.
reset ¶
Reset the instrument — full session teardown and reconnect.
This recovers from hard errors like OLP (Overload Protection) where the session is unresponsive to normal commands.