Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,406 changes: 496 additions & 2,910 deletions examples/nivisa_dmm_measurement/NIVisaDmmMeasurement.seq

Large diffs are not rendered by default.

13 changes: 1 addition & 12 deletions examples/nivisa_dmm_measurement/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,10 @@ def get_active_pin_map_id(self) -> str:
Returns:
The resource id of the pin map that is registered to the pin map service.
"""
return self._sequence_context.Engine.TemporaryGlobals.GetValString(
return self._sequence_context.Execution.RunTimeVariables.GetValString(
"NI.MeasurementLink.PinMapId", 0x0
)

def set_active_pin_map_id(self, pin_map_id: str) -> None:
"""Set the NI.MeasurementLink.PinMapId temporary global variable to the specified id.

Args:
pin_map_id:
The resource id of the pin map that is registered to the pin map service.
"""
self._sequence_context.Engine.TemporaryGlobals.SetValString(
"NI.MeasurementLink.PinMapId", 0x1, pin_map_id
)

def resolve_file_path(self, file_path: str) -> str:
"""Resolve the absolute path to a file using the TestStand search directories.

Expand Down
25 changes: 0 additions & 25 deletions examples/nivisa_dmm_measurement/teststand_pin_map.py

This file was deleted.

Binary file not shown.
13 changes: 1 addition & 12 deletions examples/output_voltage_measurement/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,10 @@ def get_active_pin_map_id(self) -> str:
Returns:
The resource id of the pin map that is registered to the pin map service.
"""
return self._sequence_context.Engine.TemporaryGlobals.GetValString(
return self._sequence_context.Execution.RunTimeVariables.GetValString(
"NI.MeasurementLink.PinMapId", 0x0
)

def set_active_pin_map_id(self, pin_map_id: str) -> None:
"""Set the NI.MeasurementLink.PinMapId temporary global variable to the specified id.

Args:
pin_map_id:
The resource id of the pin map that is registered to the pin map service.
"""
self._sequence_context.Engine.TemporaryGlobals.SetValString(
"NI.MeasurementLink.PinMapId", 0x1, pin_map_id
)

def resolve_file_path(self, file_path: str) -> str:
"""Resolve the absolute path to a file using the TestStand search directories.

Expand Down
25 changes: 0 additions & 25 deletions examples/output_voltage_measurement/teststand_pin_map.py

This file was deleted.