Skip to content

Commit 5d21247

Browse files
examples: Update NI-Visa DMM and Output Voltage TestStand sequences with the Update pin map custom step (#541)
*example: update the ni-visa and output voltage teststand sequence
1 parent bb2323a commit 5d21247

6 files changed

Lines changed: 498 additions & 2984 deletions

File tree

examples/nivisa_dmm_measurement/NIVisaDmmMeasurement.seq

Lines changed: 496 additions & 2910 deletions
Large diffs are not rendered by default.

examples/nivisa_dmm_measurement/_helpers.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,10 @@ def get_active_pin_map_id(self) -> str:
8383
Returns:
8484
The resource id of the pin map that is registered to the pin map service.
8585
"""
86-
return self._sequence_context.Engine.TemporaryGlobals.GetValString(
86+
return self._sequence_context.Execution.RunTimeVariables.GetValString(
8787
"NI.MeasurementLink.PinMapId", 0x0
8888
)
8989

90-
def set_active_pin_map_id(self, pin_map_id: str) -> None:
91-
"""Set the NI.MeasurementLink.PinMapId temporary global variable to the specified id.
92-
93-
Args:
94-
pin_map_id:
95-
The resource id of the pin map that is registered to the pin map service.
96-
"""
97-
self._sequence_context.Engine.TemporaryGlobals.SetValString(
98-
"NI.MeasurementLink.PinMapId", 0x1, pin_map_id
99-
)
100-
10190
def resolve_file_path(self, file_path: str) -> str:
10291
"""Resolve the absolute path to a file using the TestStand search directories.
10392

examples/nivisa_dmm_measurement/teststand_pin_map.py

Lines changed: 0 additions & 25 deletions
This file was deleted.
-858 Bytes
Binary file not shown.

examples/output_voltage_measurement/_helpers.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,10 @@ def get_active_pin_map_id(self) -> str:
8282
Returns:
8383
The resource id of the pin map that is registered to the pin map service.
8484
"""
85-
return self._sequence_context.Engine.TemporaryGlobals.GetValString(
85+
return self._sequence_context.Execution.RunTimeVariables.GetValString(
8686
"NI.MeasurementLink.PinMapId", 0x0
8787
)
8888

89-
def set_active_pin_map_id(self, pin_map_id: str) -> None:
90-
"""Set the NI.MeasurementLink.PinMapId temporary global variable to the specified id.
91-
92-
Args:
93-
pin_map_id:
94-
The resource id of the pin map that is registered to the pin map service.
95-
"""
96-
self._sequence_context.Engine.TemporaryGlobals.SetValString(
97-
"NI.MeasurementLink.PinMapId", 0x1, pin_map_id
98-
)
99-
10089
def resolve_file_path(self, file_path: str) -> str:
10190
"""Resolve the absolute path to a file using the TestStand search directories.
10291

examples/output_voltage_measurement/teststand_pin_map.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)