From 3b7c604dafe2d7a8de9062c7271197b77e7ff29e Mon Sep 17 00:00:00 2001 From: sbethur <48041236+sbethur@users.noreply.github.com> Date: Fri, 8 Nov 2019 17:41:06 -0600 Subject: [PATCH 1/7] Remove size param from apply_tdr_offsets() and write_source_waveform_broadcast_u32() --- docs/nidigital/class.rst | 20 +---- generated/nidigital/session.py | 10 +-- src/nidigital/metadata/functions.py | 4 +- .../system_tests/test_system_nidigital.py | 80 +++++++++++++++++-- 4 files changed, 82 insertions(+), 32 deletions(-) diff --git a/docs/nidigital/class.rst b/docs/nidigital/class.rst index 1e7e2a96e..488822ac2 100644 --- a/docs/nidigital/class.rst +++ b/docs/nidigital/class.rst @@ -162,7 +162,7 @@ apply_tdr_offsets .. py:currentmodule:: nidigital.Session - .. py:method:: apply_tdr_offsets(num_offsets, offsets) + .. py:method:: apply_tdr_offsets(offsets) TBD @@ -176,16 +176,9 @@ apply_tdr_offsets .. code:: python - session.channels[0,1].apply_tdr_offsets(num_offsets, offsets) + session.channels[0,1].apply_tdr_offsets(offsets) - :param num_offsets: - - - - - - :type num_offsets: int :param offsets: @@ -3277,7 +3270,7 @@ write_source_waveform_broadcast_u32 .. py:currentmodule:: nidigital.Session - .. py:method:: write_source_waveform_broadcast_u32(waveform_name, waveform_size, waveform_data) + .. py:method:: write_source_waveform_broadcast_u32(waveform_name, waveform_data) TBD @@ -3292,13 +3285,6 @@ write_source_waveform_broadcast_u32 :type waveform_name: str - :param waveform_size: - - - - - - :type waveform_size: int :param waveform_data: diff --git a/generated/nidigital/session.py b/generated/nidigital/session.py index c89e673a7..e6ea36cb2 100644 --- a/generated/nidigital/session.py +++ b/generated/nidigital/session.py @@ -653,7 +653,7 @@ def _get_error_description(self, error_code): ''' These are code-generated ''' @ivi_synchronized - def apply_tdr_offsets(self, num_offsets, offsets): + def apply_tdr_offsets(self, offsets): r'''apply_tdr_offsets TBD @@ -664,11 +664,9 @@ def apply_tdr_offsets(self, num_offsets, offsets): You can specify a subset of repeated capabilities using the Python index notation on an nidigital.Session repeated capabilities container, and calling this method on the result.: - session.channels[0,1].apply_tdr_offsets(num_offsets, offsets) + session.channels[0,1].apply_tdr_offsets(offsets) Args: - num_offsets (int): - offsets (list of float): ''' @@ -3574,7 +3572,7 @@ def write_sequencer_register(self, reg, value): return @ivi_synchronized - def write_source_waveform_broadcast_u32(self, waveform_name, waveform_size, waveform_data): + def write_source_waveform_broadcast_u32(self, waveform_name, waveform_data): r'''write_source_waveform_broadcast_u32 TBD @@ -3582,8 +3580,6 @@ def write_source_waveform_broadcast_u32(self, waveform_name, waveform_size, wave Args: waveform_name (str): - waveform_size (int): - waveform_data (list of int): ''' diff --git a/src/nidigital/metadata/functions.py b/src/nidigital/metadata/functions.py index 1b88af9e8..bd5a049f6 100644 --- a/src/nidigital/metadata/functions.py +++ b/src/nidigital/metadata/functions.py @@ -94,7 +94,7 @@ 'direction': 'in', 'name': 'offsets', 'size': { - 'mechanism': 'passed-in', + 'mechanism': 'len', 'value': 'numOffsets' }, 'type': 'ViReal64[]' @@ -3672,7 +3672,7 @@ 'direction': 'in', 'name': 'waveformData', 'size': { - 'mechanism': 'passed-in', + 'mechanism': 'len', 'value': 'waveformSize' }, 'type': 'ViUInt32[]' diff --git a/src/nidigital/system_tests/test_system_nidigital.py b/src/nidigital/system_tests/test_system_nidigital.py index 31a24d949..73ac5b9b5 100644 --- a/src/nidigital/system_tests/test_system_nidigital.py +++ b/src/nidigital/system_tests/test_system_nidigital.py @@ -1,4 +1,5 @@ import nidigital +import os import pytest instr = ['PXI1Slot2', 'PXI1Slot5'] @@ -11,13 +12,15 @@ def multi_instrument_session(): def test_property_boolean(multi_instrument_session): - multi_instrument_session.channels[instr[0] + '/0'].ppmu_allow_extended_voltage_range = True - assert multi_instrument_session.channels[instr[0] + '/0'].ppmu_allow_extended_voltage_range == True + channel = multi_instrument_session.get_channel_name(index=42) + multi_instrument_session.channels[channel].ppmu_allow_extended_voltage_range = True + assert multi_instrument_session.channels[channel].ppmu_allow_extended_voltage_range == True def test_property_int32(multi_instrument_session): - multi_instrument_session.channels[instr[0] + '/0'].termination_mode = nidigital.TerminationMode.HIGH_Z - assert multi_instrument_session.channels[instr[0] + '/0'].termination_mode == nidigital.TerminationMode.HIGH_Z + channel = multi_instrument_session.get_channel_name(index=42) + multi_instrument_session.channels[channel].termination_mode = nidigital.TerminationMode.HIGH_Z + assert multi_instrument_session.channels[channel].termination_mode == nidigital.TerminationMode.HIGH_Z def test_property_int64(multi_instrument_session): @@ -26,10 +29,75 @@ def test_property_int64(multi_instrument_session): def test_property_real64(multi_instrument_session): - multi_instrument_session.channels[instr[0] + '/0'].ppmu_voltage_level = 4 - assert multi_instrument_session.channels[instr[0] + '/0'].ppmu_voltage_level == pytest.approx(4, rel=1e-3) + channel = multi_instrument_session.get_channel_name(index=42) + multi_instrument_session.channels[channel].ppmu_voltage_level = 4 + assert multi_instrument_session.channels[channel].ppmu_voltage_level == pytest.approx(4, rel=1e-3) def test_property_string(multi_instrument_session): multi_instrument_session.start_label = 'foo' assert multi_instrument_session.start_label == 'foo' + + +def test_tdr_all_channels(multi_instrument_session): + applied_offsets = multi_instrument_session.tdr(apply_offsets=False) + assert len(applied_offsets) == multi_instrument_session.channel_count + + multi_instrument_session.apply_tdr_offsets(applied_offsets) + + channels = [multi_instrument_session.get_channel_name(i) for i in range(1, multi_instrument_session.channel_count + 1)] + fetched_offsets = [multi_instrument_session.channels[i].tdr_offset for i in channels] + assert fetched_offsets == applied_offsets + + +def test_tdr_some_channels(multi_instrument_session): + channels = [multi_instrument_session.get_channel_name(i) for i in [64, 1, 50, 25]] + applied_offsets = multi_instrument_session.channels[channels].tdr(apply_offsets=False) + assert len(applied_offsets) == len(channels) + + multi_instrument_session.channels[channels].apply_tdr_offsets(applied_offsets) + + fetched_offsets = [multi_instrument_session.channels[i].tdr_offset for i in channels] + assert fetched_offsets == applied_offsets + + +def test_source_waveform_parallel_broadcast(multi_instrument_session): + configure_session(multi_instrument_session) + + multi_instrument_session.create_source_waveform_parallel( + pin_list='LowPins', + waveform_name='new_waveform', + data_mapping=2600) + + multi_instrument_session.write_source_waveform_broadcast_u32( + waveform_name='new_waveform', + waveform_data=[i for i in range(4)]) + + multi_instrument_session.burst_pattern( + site_list='', + start_label='new_pattern', + select_digital_function=False, + wait_until_done=True, + timeout=5) + + pass_fail = multi_instrument_session.get_site_pass_fail(site_list='') + assert pass_fail == [True, True] + + +def configure_session(session): + test_files_dir = os.path.join(os.getcwd(), 'src\\nidigital\\system_tests\\test_files') + + session.load_pin_map(os.path.join(test_files_dir, 'pin_map.pinmap')) + + session.load_specifications(os.path.join(test_files_dir, 'specifications.specs')) + session.load_levels(os.path.join(test_files_dir, 'pin_levels.digilevels')) + session.load_timing(os.path.join(test_files_dir, 'timing.digitiming')) + session.apply_levels_and_timing( + site_list='', + levels_sheet='pin_levels', + timing_sheet='timing', + initial_state_high_pins='', + initial_state_low_pins='', + initial_state_tristate_pins='') + + session.load_pattern(os.path.join(test_files_dir, 'pattern.digipat')) From fd1c5b6689d7799147aa25ddce78ce4ac777f888 Mon Sep 17 00:00:00 2001 From: sbethur <48041236+sbethur@users.noreply.github.com> Date: Fri, 8 Nov 2019 17:48:13 -0600 Subject: [PATCH 2/7] Add test support files --- .../system_tests/test_files/pattern.digipat | Bin 0 -> 4557 bytes .../test_files/pin_levels.digilevels | 14 ++++++ .../system_tests/test_files/pin_map.pinmap | 43 ++++++++++++++++++ .../test_files/specifications.specs | 8 ++++ .../system_tests/test_files/timing.digitiming | 24 ++++++++++ 5 files changed, 89 insertions(+) create mode 100644 src/nidigital/system_tests/test_files/pattern.digipat create mode 100644 src/nidigital/system_tests/test_files/pin_levels.digilevels create mode 100644 src/nidigital/system_tests/test_files/pin_map.pinmap create mode 100644 src/nidigital/system_tests/test_files/specifications.specs create mode 100644 src/nidigital/system_tests/test_files/timing.digitiming diff --git a/src/nidigital/system_tests/test_files/pattern.digipat b/src/nidigital/system_tests/test_files/pattern.digipat new file mode 100644 index 0000000000000000000000000000000000000000..83fd00b6672f18818552dc6f48ef13630f7d300c GIT binary patch literal 4557 zcmcgvU2hXd6kTXbRf&AZ={>vmIOD`dcGB&Y#>XDdoO|ZZ+&jCQtL^+!k|g$8l57jYh!^BLTJwY0r}72O zWw~hxelD$_gu!Y0Fu+O9g8+zq%bihwG2z!NZ;HTJTFpC20XRS=7SuI%YxnRnN@EOj2~U#g;*Quh||$N>e^6z zjP@5*OFTvUy$o0_4&AQLy5?2poprk#uALp25wUagu~_aX5v*TGYo=>PXncxuip~iK z5?o)&-#F`55Jto_9E>4XGnFvr#)b4d>265Fkdt;%Iwp8S_rTfkW=`xWE|4WOon-G2&!lxNutge;CtW?#Z>kfLZa*Feiv$(%jH^)p_SJL;r#- zF(OoGnHZ{AFFILoJ=-?DniDlIr6dUvVt$Y&i8@9MWZ?m~hDSW+5p>1s){dlx; zboXd=Ybz$-(E&t|Ltq@LmXmjkL1$Q-_!dg;^PRlsO7oNAED9J>o%%jW{*e=S+^!~n zf52)n4iCokL4>b)Y0b1<417mk6%WjgJUmWwweu{qbP$jApWv+Rv7bs9$=_u~uvwH~ RENrfV@)PF=34Ewg`4^vz=RyDg literal 0 HcmV?d00001 diff --git a/src/nidigital/system_tests/test_files/pin_levels.digilevels b/src/nidigital/system_tests/test_files/pin_levels.digilevels new file mode 100644 index 000000000..875ecc251 --- /dev/null +++ b/src/nidigital/system_tests/test_files/pin_levels.digilevels @@ -0,0 +1,14 @@ + + + + + + 1 V + 5 V + 2 V + 4 V + HighZ + + + + \ No newline at end of file diff --git a/src/nidigital/system_tests/test_files/pin_map.pinmap b/src/nidigital/system_tests/test_files/pin_map.pinmap new file mode 100644 index 000000000..7e42795a7 --- /dev/null +++ b/src/nidigital/system_tests/test_files/pin_map.pinmap @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/nidigital/system_tests/test_files/specifications.specs b/src/nidigital/system_tests/test_files/specifications.specs new file mode 100644 index 000000000..64b843866 --- /dev/null +++ b/src/nidigital/system_tests/test_files/specifications.specs @@ -0,0 +1,8 @@ + + +
+ + 10 µ + +
+
\ No newline at end of file diff --git a/src/nidigital/system_tests/test_files/timing.digitiming b/src/nidigital/system_tests/test_files/timing.digitiming new file mode 100644 index 000000000..2ee9f972e --- /dev/null +++ b/src/nidigital/system_tests/test_files/timing.digitiming @@ -0,0 +1,24 @@ + + + + + + AC.Period + + + + AC.Period * 0.1 + AC.Period * 0.2 + AC.Period * 0.8 + AC.Period * 0.9 + + + AC.Period * 0.5 + + Pattern + + + + + + \ No newline at end of file From 0accae60d55dd22b55b6b88b2785c720bcbc9470 Mon Sep 17 00:00:00 2001 From: sbethur <48041236+sbethur@users.noreply.github.com> Date: Fri, 8 Nov 2019 17:54:28 -0600 Subject: [PATCH 3/7] Updated Changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd2552ef3..f8ec7a856 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,7 @@ All notable changes to this project will be documented in this file. * #### Added * #### Changed * Fix get/set properties - [#1062](https://github.com/ni/nimi-python/issues/1062) + * Removed array-size parameter from apply_tdr_offsets() and write_source_waveform_broadcast_u32() methods - [#1070](https://github.com/ni/nimi-python/issues/1070) * #### Removed * ### NI-TClk * #### Added From b8ba7f3a26e3360809ab902df79740a8e8b33d16 Mon Sep 17 00:00:00 2001 From: sbethur <48041236+sbethur@users.noreply.github.com> Date: Mon, 11 Nov 2019 11:35:47 -0600 Subject: [PATCH 4/7] Remove size param from apply_tdr_offsets() and write_source_waveform_broadcast_u32() --- .../system_tests/test_system_nidigital.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/nidigital/system_tests/test_system_nidigital.py b/src/nidigital/system_tests/test_system_nidigital.py index 73ac5b9b5..158bd3263 100644 --- a/src/nidigital/system_tests/test_system_nidigital.py +++ b/src/nidigital/system_tests/test_system_nidigital.py @@ -12,15 +12,13 @@ def multi_instrument_session(): def test_property_boolean(multi_instrument_session): - channel = multi_instrument_session.get_channel_name(index=42) - multi_instrument_session.channels[channel].ppmu_allow_extended_voltage_range = True - assert multi_instrument_session.channels[channel].ppmu_allow_extended_voltage_range == True + multi_instrument_session.channels[instr[0] + '/0'].ppmu_allow_extended_voltage_range = True + assert multi_instrument_session.channels[instr[0] + '/0'].ppmu_allow_extended_voltage_range == True def test_property_int32(multi_instrument_session): - channel = multi_instrument_session.get_channel_name(index=42) - multi_instrument_session.channels[channel].termination_mode = nidigital.TerminationMode.HIGH_Z - assert multi_instrument_session.channels[channel].termination_mode == nidigital.TerminationMode.HIGH_Z + multi_instrument_session.channels[instr[0] + '/0'].termination_mode = nidigital.TerminationMode.HIGH_Z + assert multi_instrument_session.channels[instr[0] + '/0'].termination_mode == nidigital.TerminationMode.HIGH_Z def test_property_int64(multi_instrument_session): @@ -29,9 +27,8 @@ def test_property_int64(multi_instrument_session): def test_property_real64(multi_instrument_session): - channel = multi_instrument_session.get_channel_name(index=42) - multi_instrument_session.channels[channel].ppmu_voltage_level = 4 - assert multi_instrument_session.channels[channel].ppmu_voltage_level == pytest.approx(4, rel=1e-3) + multi_instrument_session.channels[instr[0] + '/0'].ppmu_voltage_level = 4 + assert multi_instrument_session.channels[instr[0] + '/0'].ppmu_voltage_level == pytest.approx(4, rel=1e-3) def test_property_string(multi_instrument_session): From 3c2bdc50bf7c520726defb8ea63e8eac4f95cfaf Mon Sep 17 00:00:00 2001 From: sbethur <48041236+sbethur@users.noreply.github.com> Date: Mon, 11 Nov 2019 15:16:53 -0600 Subject: [PATCH 5/7] Updated the os.path.join() call. --- src/nidigital/system_tests/test_system_nidigital.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nidigital/system_tests/test_system_nidigital.py b/src/nidigital/system_tests/test_system_nidigital.py index 158bd3263..dc6c2b423 100644 --- a/src/nidigital/system_tests/test_system_nidigital.py +++ b/src/nidigital/system_tests/test_system_nidigital.py @@ -82,7 +82,7 @@ def test_source_waveform_parallel_broadcast(multi_instrument_session): def configure_session(session): - test_files_dir = os.path.join(os.getcwd(), 'src\\nidigital\\system_tests\\test_files') + test_files_dir = os.path.join(os.getcwd(), 'src', 'nidigital', 'system_tests', 'test_files') session.load_pin_map(os.path.join(test_files_dir, 'pin_map.pinmap')) From 24e0b183e3de769c162ab7219e54e219d5c42a71 Mon Sep 17 00:00:00 2001 From: sbethur <48041236+sbethur@users.noreply.github.com> Date: Mon, 11 Nov 2019 16:50:45 -0600 Subject: [PATCH 6/7] Revert "Add test support files" This reverts commit fd1c5b66 --- .../system_tests/test_files/pattern.digipat | Bin 4557 -> 0 bytes .../test_files/pin_levels.digilevels | 14 ------ .../system_tests/test_files/pin_map.pinmap | 43 ------------------ .../test_files/specifications.specs | 8 ---- .../system_tests/test_files/timing.digitiming | 24 ---------- 5 files changed, 89 deletions(-) delete mode 100644 src/nidigital/system_tests/test_files/pattern.digipat delete mode 100644 src/nidigital/system_tests/test_files/pin_levels.digilevels delete mode 100644 src/nidigital/system_tests/test_files/pin_map.pinmap delete mode 100644 src/nidigital/system_tests/test_files/specifications.specs delete mode 100644 src/nidigital/system_tests/test_files/timing.digitiming diff --git a/src/nidigital/system_tests/test_files/pattern.digipat b/src/nidigital/system_tests/test_files/pattern.digipat deleted file mode 100644 index 83fd00b6672f18818552dc6f48ef13630f7d300c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4557 zcmcgvU2hXd6kTXbRf&AZ={>vmIOD`dcGB&Y#>XDdoO|ZZ+&jCQtL^+!k|g$8l57jYh!^BLTJwY0r}72O zWw~hxelD$_gu!Y0Fu+O9g8+zq%bihwG2z!NZ;HTJTFpC20XRS=7SuI%YxnRnN@EOj2~U#g;*Quh||$N>e^6z zjP@5*OFTvUy$o0_4&AQLy5?2poprk#uALp25wUagu~_aX5v*TGYo=>PXncxuip~iK z5?o)&-#F`55Jto_9E>4XGnFvr#)b4d>265Fkdt;%Iwp8S_rTfkW=`xWE|4WOon-G2&!lxNutge;CtW?#Z>kfLZa*Feiv$(%jH^)p_SJL;r#- zF(OoGnHZ{AFFILoJ=-?DniDlIr6dUvVt$Y&i8@9MWZ?m~hDSW+5p>1s){dlx; zboXd=Ybz$-(E&t|Ltq@LmXmjkL1$Q-_!dg;^PRlsO7oNAED9J>o%%jW{*e=S+^!~n zf52)n4iCokL4>b)Y0b1<417mk6%WjgJUmWwweu{qbP$jApWv+Rv7bs9$=_u~uvwH~ RENrfV@)PF=34Ewg`4^vz=RyDg diff --git a/src/nidigital/system_tests/test_files/pin_levels.digilevels b/src/nidigital/system_tests/test_files/pin_levels.digilevels deleted file mode 100644 index 875ecc251..000000000 --- a/src/nidigital/system_tests/test_files/pin_levels.digilevels +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - 1 V - 5 V - 2 V - 4 V - HighZ - - - - \ No newline at end of file diff --git a/src/nidigital/system_tests/test_files/pin_map.pinmap b/src/nidigital/system_tests/test_files/pin_map.pinmap deleted file mode 100644 index 7e42795a7..000000000 --- a/src/nidigital/system_tests/test_files/pin_map.pinmap +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/nidigital/system_tests/test_files/specifications.specs b/src/nidigital/system_tests/test_files/specifications.specs deleted file mode 100644 index 64b843866..000000000 --- a/src/nidigital/system_tests/test_files/specifications.specs +++ /dev/null @@ -1,8 +0,0 @@ - - -
- - 10 µ - -
-
\ No newline at end of file diff --git a/src/nidigital/system_tests/test_files/timing.digitiming b/src/nidigital/system_tests/test_files/timing.digitiming deleted file mode 100644 index 2ee9f972e..000000000 --- a/src/nidigital/system_tests/test_files/timing.digitiming +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - AC.Period - - - - AC.Period * 0.1 - AC.Period * 0.2 - AC.Period * 0.8 - AC.Period * 0.9 - - - AC.Period * 0.5 - - Pattern - - - - - - \ No newline at end of file From d7bb02a9c2bb32b2b95344d94cf8761c916e7792 Mon Sep 17 00:00:00 2001 From: sbethur <48041236+sbethur@users.noreply.github.com> Date: Mon, 11 Nov 2019 16:56:30 -0600 Subject: [PATCH 7/7] Remove newly added system tests --- .../system_tests/test_system_nidigital.py | 65 ------------------- 1 file changed, 65 deletions(-) diff --git a/src/nidigital/system_tests/test_system_nidigital.py b/src/nidigital/system_tests/test_system_nidigital.py index dc6c2b423..31a24d949 100644 --- a/src/nidigital/system_tests/test_system_nidigital.py +++ b/src/nidigital/system_tests/test_system_nidigital.py @@ -1,5 +1,4 @@ import nidigital -import os import pytest instr = ['PXI1Slot2', 'PXI1Slot5'] @@ -34,67 +33,3 @@ def test_property_real64(multi_instrument_session): def test_property_string(multi_instrument_session): multi_instrument_session.start_label = 'foo' assert multi_instrument_session.start_label == 'foo' - - -def test_tdr_all_channels(multi_instrument_session): - applied_offsets = multi_instrument_session.tdr(apply_offsets=False) - assert len(applied_offsets) == multi_instrument_session.channel_count - - multi_instrument_session.apply_tdr_offsets(applied_offsets) - - channels = [multi_instrument_session.get_channel_name(i) for i in range(1, multi_instrument_session.channel_count + 1)] - fetched_offsets = [multi_instrument_session.channels[i].tdr_offset for i in channels] - assert fetched_offsets == applied_offsets - - -def test_tdr_some_channels(multi_instrument_session): - channels = [multi_instrument_session.get_channel_name(i) for i in [64, 1, 50, 25]] - applied_offsets = multi_instrument_session.channels[channels].tdr(apply_offsets=False) - assert len(applied_offsets) == len(channels) - - multi_instrument_session.channels[channels].apply_tdr_offsets(applied_offsets) - - fetched_offsets = [multi_instrument_session.channels[i].tdr_offset for i in channels] - assert fetched_offsets == applied_offsets - - -def test_source_waveform_parallel_broadcast(multi_instrument_session): - configure_session(multi_instrument_session) - - multi_instrument_session.create_source_waveform_parallel( - pin_list='LowPins', - waveform_name='new_waveform', - data_mapping=2600) - - multi_instrument_session.write_source_waveform_broadcast_u32( - waveform_name='new_waveform', - waveform_data=[i for i in range(4)]) - - multi_instrument_session.burst_pattern( - site_list='', - start_label='new_pattern', - select_digital_function=False, - wait_until_done=True, - timeout=5) - - pass_fail = multi_instrument_session.get_site_pass_fail(site_list='') - assert pass_fail == [True, True] - - -def configure_session(session): - test_files_dir = os.path.join(os.getcwd(), 'src', 'nidigital', 'system_tests', 'test_files') - - session.load_pin_map(os.path.join(test_files_dir, 'pin_map.pinmap')) - - session.load_specifications(os.path.join(test_files_dir, 'specifications.specs')) - session.load_levels(os.path.join(test_files_dir, 'pin_levels.digilevels')) - session.load_timing(os.path.join(test_files_dir, 'timing.digitiming')) - session.apply_levels_and_timing( - site_list='', - levels_sheet='pin_levels', - timing_sheet='timing', - initial_state_high_pins='', - initial_state_low_pins='', - initial_state_tristate_pins='') - - session.load_pattern(os.path.join(test_files_dir, 'pattern.digipat'))