Skip to content

Commit

Permalink
examples: Update NI-Scope, NI-Switch and NI-Fgen TestStand sequences …
Browse files Browse the repository at this point in the history
…with the Update pin map custom step (#540)

*example: update the ni-fgen, ni-scope and ni-switch teststand sequence
  • Loading branch information
Avinash2Suresh authored Dec 8, 2023
1 parent 6fc8564 commit bb2323a
Show file tree
Hide file tree
Showing 9 changed files with 2,099 additions and 8,702 deletions.
3,406 changes: 496 additions & 2,910 deletions examples/nifgen_standard_function/NIFgenStandardFunction.seq

Large diffs are not rendered by default.

13 changes: 1 addition & 12 deletions examples/nifgen_standard_function/_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/nifgen_standard_function/teststand_pin_map.py

This file was deleted.

4,256 changes: 921 additions & 3,335 deletions examples/niscope_acquire_waveform/NIScopeAcquireWaveform.seq

Large diffs are not rendered by default.

13 changes: 1 addition & 12 deletions examples/niscope_acquire_waveform/_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/niscope_acquire_waveform/teststand_pin_map.py

This file was deleted.

3,025 changes: 679 additions & 2,346 deletions examples/niswitch_control_relays/NISwitchControlRelays.seq

Large diffs are not rendered by default.

13 changes: 1 addition & 12 deletions examples/niswitch_control_relays/_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/niswitch_control_relays/teststand_pin_map.py

This file was deleted.

0 comments on commit bb2323a

Please sign in to comment.