Skip to content

Commit 6fc8564

Browse files
examples: Update NI-DAQmx, NI-Digital and NI-DMM TestStand sequences with the Update pin map custom step (#539)
*example: update the daqmx, digital and dmm teststand sequence
1 parent dc41458 commit 6fc8564

9 files changed

Lines changed: 1723 additions & 9070 deletions

File tree

examples/nidaqmx_analog_input/NIDAQmxAnalogInput.seq

Lines changed: 499 additions & 2913 deletions
Large diffs are not rendered by default.

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

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

examples/nidigital_spi/NIDigitalSPI.seq

Lines changed: 683 additions & 3094 deletions
Large diffs are not rendered by default.

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

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

examples/nidmm_measurement/NIDmmMeasurement.seq

Lines changed: 538 additions & 2952 deletions
Large diffs are not rendered by default.

examples/nidmm_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/nidmm_measurement/teststand_pin_map.py

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

0 commit comments

Comments
 (0)