Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: Update NI-Scope, NI-Switch and NI-Fgen TestStand sequences with the Update pin map custom step #540

Merged
merged 1 commit into from
Dec 8, 2023
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/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.