Skip to content

Commit bb2323a

Browse files
examples: Update NI-Scope, NI-Switch and NI-Fgen TestStand sequences with the Update pin map custom step (#540)
*example: update the ni-fgen, ni-scope and ni-switch teststand sequence
1 parent 6fc8564 commit bb2323a

9 files changed

Lines changed: 2099 additions & 8702 deletions

File tree

examples/nifgen_standard_function/NIFgenStandardFunction.seq

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

examples/nifgen_standard_function/_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/nifgen_standard_function/teststand_pin_map.py

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

examples/niscope_acquire_waveform/NIScopeAcquireWaveform.seq

Lines changed: 921 additions & 3335 deletions
Large diffs are not rendered by default.

examples/niscope_acquire_waveform/_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/niscope_acquire_waveform/teststand_pin_map.py

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

examples/niswitch_control_relays/NISwitchControlRelays.seq

Lines changed: 679 additions & 2346 deletions
Large diffs are not rendered by default.

examples/niswitch_control_relays/_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/niswitch_control_relays/teststand_pin_map.py

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

0 commit comments

Comments
 (0)