From 6cb18db556d6bca54e8d4db7eed593d280a8a8d0 Mon Sep 17 00:00:00 2001 From: karthikeswari-veerakumar Date: Tue, 3 Nov 2026 15:48:07 +0530 Subject: [PATCH 1/9] Add nidigital TDR measurement example --- .../tdr_measurement/tdr_measurement.py | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 src/nidigital/examples/tdr_measurement/tdr_measurement.py diff --git a/src/nidigital/examples/tdr_measurement/tdr_measurement.py b/src/nidigital/examples/tdr_measurement/tdr_measurement.py new file mode 100644 index 0000000000..70f0adc2fb --- /dev/null +++ b/src/nidigital/examples/tdr_measurement/tdr_measurement.py @@ -0,0 +1,81 @@ +#!/usr/bin/python + +import argparse +import os +import sys + +import nidigital + +def example(resource_name, options, channel_list, endpoint_termination, apply_offsets): + directory = os.path.dirname(os.path.abspath(__file__)) + + with nidigital.Session( + resource_name=resource_name, options=options, reset_device=True + ) as session: + try: + # Load the pin map (.pinmap) created using the Digital Pattern Editor + pin_map_filename = os.path.join(directory, "PinMap.pinmap") + session.load_pin_map(pin_map_filename) + + # Configure whether the TDR endpoint is open or shorted to ground + session.tdr_endpoint_termination = endpoint_termination + + # Measure propagation delays for the selected channels or pins. + # apply_offsets=True (automatically applies the measured offsets to the instrument). + print("Start TDR Measurement") + + offsets = session.channels[channel_list].tdr(apply_offsets=apply_offsets) + offsets_in_seconds = [offset.total_seconds() for offset in offsets] + + print("TDR Offsets (seconds): {}".format(offsets_in_seconds)) + finally: + # Disconnect all the selected channels using programmable onboard switching. + session.channels[channel_list].selected_function = ( + nidigital.SelectedFunction.DISCONNECT + ) + + print("Done TDR Measurement") + return offsets + + +def _main(argsv): + parser = argparse.ArgumentParser(description='Demonstrates how to use Time-Domain Reflectometry (TDR) to measure propagation delays through cables, connectors, and load boards. Use a 50 ohm controlled-impedance system and ensure an open or short exists at the selected TDR plane.', formatter_class=argparse.ArgumentDefaultsHelpFormatter) + parser.add_argument('-n', '--resource-name', default='PXI1Slot2,PXI1Slot3', help='The specified resource name shown in Measurement & Automation Explorer (MAX) for a digital pattern instrument, for example, PXI1Slot3, where PXI1Slot3 is an instrument resource name.') + parser.add_argument('-s', '--simulate', default='True', choices=['True', 'False'], help='Whether to run on simulated hardware or real hardware') + parser.add_argument('-c', '--channel-list', default='PinGroup1', help='List of channels or pins to measure.') + parser.add_argument('-e', '--tdr-endpoint-termination', default='OPEN', type=str.upper, choices=nidigital.TDREndpointTermination.__members__, help='Specifies whether TDR Channels are connected to an open circuit or a short to ground.') + parser.add_argument('-a', '--apply-offsets', default='True', choices=['True', 'False'], help='A Boolean that specifies whether to apply the measured TDR offsets.') + args = parser.parse_args(argsv) + + example(args.resource_name, + 'Simulate=1, DriverSetup=Model:6570' if args.simulate == 'True' else '', + args.channel_list, + nidigital.TDREndpointTermination[args.tdr_endpoint_termination], + args.apply_offsets == 'True') + +def main(): + _main(sys.argv[1:]) + + +def test_main(): + _main([]) + _main(['--tdr-endpoint-termination', 'SHORT_TO_GROUND', '--apply-offsets', 'False']) + + +def test_example(): + resource_name = "PXI1Slot2,PXI1Slot3" + options = {"simulate": True, "driver_setup": {"Model": "6570"}} + channel_list = "PinGroup1" + + tdr_endpoint_termination = nidigital.TDREndpointTermination.OPEN + + example(resource_name, options, channel_list, tdr_endpoint_termination, apply_offsets=True) + example(resource_name, options, channel_list, tdr_endpoint_termination, apply_offsets=False) + + tdr_endpoint_termination = nidigital.TDREndpointTermination.SHORT_TO_GROUND + example(resource_name, options, channel_list, tdr_endpoint_termination, apply_offsets=True) + example(resource_name, options, channel_list, tdr_endpoint_termination, apply_offsets=False) + + +if __name__ == '__main__': + main() \ No newline at end of file From 57ef0027d15f82778021b712617d06bc2d9b4031 Mon Sep 17 00:00:00 2001 From: karthikeswari-veerakumar Date: Tue, 3 Nov 2026 15:51:05 +0530 Subject: [PATCH 2/9] Add Pinmap Configuration file --- .../examples/tdr_measurement/PinMap.pinmap | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/nidigital/examples/tdr_measurement/PinMap.pinmap diff --git a/src/nidigital/examples/tdr_measurement/PinMap.pinmap b/src/nidigital/examples/tdr_measurement/PinMap.pinmap new file mode 100644 index 0000000000..80a2297e99 --- /dev/null +++ b/src/nidigital/examples/tdr_measurement/PinMap.pinmap @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From bf1e9ba76d955b050491da05b4357918cc5aab48 Mon Sep 17 00:00:00 2001 From: "Selvam, Divakar" Date: Tue, 3 Nov 2026 16:31:58 +0530 Subject: [PATCH 3/9] fix: fix formatting and update the documentation --- CHANGELOG.md | 1 + docs/nidigital/examples.rst | 9 + .../tdr_measurement/TDR Measurement.digiproj | 34 ++++ .../tdr_measurement/tdr_measurement.py | 156 +++++++++--------- 4 files changed, 119 insertions(+), 81 deletions(-) create mode 100644 src/nidigital/examples/tdr_measurement/TDR Measurement.digiproj diff --git a/CHANGELOG.md b/CHANGELOG.md index 092ff8d859..b8369a6da7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -558,6 +558,7 @@ #### [nidigital] Unreleased - Added - (Common) Added `nitlsconfig[grpc]>=1.0.0a2` to the optional gRPC dependencies. + - Added the `tdr_measurement.py` example and its Digital Pattern Editor project. - Changed - Removed diff --git a/docs/nidigital/examples.rst b/docs/nidigital/examples.rst index b8c8cc689a..d548c8f1d4 100644 --- a/docs/nidigital/examples.rst +++ b/docs/nidigital/examples.rst @@ -30,3 +30,12 @@ nidigital_ppmu_source_and_measure.py :encoding: utf8 :caption: `(nidigital_ppmu_source_and_measure.py) `_ +tdr_measurement.py +------------------ + +.. literalinclude:: ../../src/nidigital/examples/tdr_measurement/tdr_measurement.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(tdr_measurement.py) `_ + diff --git a/src/nidigital/examples/tdr_measurement/TDR Measurement.digiproj b/src/nidigital/examples/tdr_measurement/TDR Measurement.digiproj new file mode 100644 index 0000000000..0cdbde6d5d --- /dev/null +++ b/src/nidigital/examples/tdr_measurement/TDR Measurement.digiproj @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/nidigital/examples/tdr_measurement/tdr_measurement.py b/src/nidigital/examples/tdr_measurement/tdr_measurement.py index 70f0adc2fb..1ea9c1107a 100644 --- a/src/nidigital/examples/tdr_measurement/tdr_measurement.py +++ b/src/nidigital/examples/tdr_measurement/tdr_measurement.py @@ -1,81 +1,75 @@ -#!/usr/bin/python - -import argparse -import os -import sys - -import nidigital - -def example(resource_name, options, channel_list, endpoint_termination, apply_offsets): - directory = os.path.dirname(os.path.abspath(__file__)) - - with nidigital.Session( - resource_name=resource_name, options=options, reset_device=True - ) as session: - try: - # Load the pin map (.pinmap) created using the Digital Pattern Editor - pin_map_filename = os.path.join(directory, "PinMap.pinmap") - session.load_pin_map(pin_map_filename) - - # Configure whether the TDR endpoint is open or shorted to ground - session.tdr_endpoint_termination = endpoint_termination - - # Measure propagation delays for the selected channels or pins. - # apply_offsets=True (automatically applies the measured offsets to the instrument). - print("Start TDR Measurement") - - offsets = session.channels[channel_list].tdr(apply_offsets=apply_offsets) - offsets_in_seconds = [offset.total_seconds() for offset in offsets] - - print("TDR Offsets (seconds): {}".format(offsets_in_seconds)) - finally: - # Disconnect all the selected channels using programmable onboard switching. - session.channels[channel_list].selected_function = ( - nidigital.SelectedFunction.DISCONNECT - ) - - print("Done TDR Measurement") - return offsets - - -def _main(argsv): - parser = argparse.ArgumentParser(description='Demonstrates how to use Time-Domain Reflectometry (TDR) to measure propagation delays through cables, connectors, and load boards. Use a 50 ohm controlled-impedance system and ensure an open or short exists at the selected TDR plane.', formatter_class=argparse.ArgumentDefaultsHelpFormatter) - parser.add_argument('-n', '--resource-name', default='PXI1Slot2,PXI1Slot3', help='The specified resource name shown in Measurement & Automation Explorer (MAX) for a digital pattern instrument, for example, PXI1Slot3, where PXI1Slot3 is an instrument resource name.') - parser.add_argument('-s', '--simulate', default='True', choices=['True', 'False'], help='Whether to run on simulated hardware or real hardware') - parser.add_argument('-c', '--channel-list', default='PinGroup1', help='List of channels or pins to measure.') - parser.add_argument('-e', '--tdr-endpoint-termination', default='OPEN', type=str.upper, choices=nidigital.TDREndpointTermination.__members__, help='Specifies whether TDR Channels are connected to an open circuit or a short to ground.') - parser.add_argument('-a', '--apply-offsets', default='True', choices=['True', 'False'], help='A Boolean that specifies whether to apply the measured TDR offsets.') - args = parser.parse_args(argsv) - - example(args.resource_name, - 'Simulate=1, DriverSetup=Model:6570' if args.simulate == 'True' else '', - args.channel_list, - nidigital.TDREndpointTermination[args.tdr_endpoint_termination], - args.apply_offsets == 'True') - -def main(): - _main(sys.argv[1:]) - - -def test_main(): - _main([]) - _main(['--tdr-endpoint-termination', 'SHORT_TO_GROUND', '--apply-offsets', 'False']) - - -def test_example(): - resource_name = "PXI1Slot2,PXI1Slot3" - options = {"simulate": True, "driver_setup": {"Model": "6570"}} - channel_list = "PinGroup1" - - tdr_endpoint_termination = nidigital.TDREndpointTermination.OPEN - - example(resource_name, options, channel_list, tdr_endpoint_termination, apply_offsets=True) - example(resource_name, options, channel_list, tdr_endpoint_termination, apply_offsets=False) - - tdr_endpoint_termination = nidigital.TDREndpointTermination.SHORT_TO_GROUND - example(resource_name, options, channel_list, tdr_endpoint_termination, apply_offsets=True) - example(resource_name, options, channel_list, tdr_endpoint_termination, apply_offsets=False) - - -if __name__ == '__main__': - main() \ No newline at end of file +#!/usr/bin/python + +import argparse +import nidigital +import os +import sys + + +def example(resource_name, options, channel_list, endpoint_termination, apply_offsets): + directory = os.path.dirname(os.path.abspath(__file__)) + + with nidigital.Session(resource_name=resource_name, options=options, reset_device=True) as session: + try: + # Load the pin map (.pinmap) created using the Digital Pattern Editor + pin_map_filename = os.path.join(directory, 'PinMap.pinmap') + session.load_pin_map(pin_map_filename) + + # Configure whether the TDR endpoint is open or shorted to ground + session.tdr_endpoint_termination = endpoint_termination + + # Measure propagation delays and optionally apply the offsets to compensate for them. + print('Start TDR Measurement') + offsets = session.channels[channel_list].tdr(apply_offsets=apply_offsets) + offsets_in_seconds = [offset.total_seconds() for offset in offsets] + + print('TDR Offsets (seconds): {}'.format(offsets_in_seconds)) + finally: + # Disconnect the selected channels using programmable onboard switching + session.channels[channel_list].selected_function = nidigital.SelectedFunction.DISCONNECT + + print('Done TDR Measurement') + return offsets + + +def _main(argsv): + parser = argparse.ArgumentParser(description='Demonstrates how to use Time-Domain Reflectometry (TDR) to measure propagation delays through cables, connectors, and load boards. Use a 50 ohm controlled-impedance system and ensure an open or short exists at the selected TDR plane.', formatter_class=argparse.ArgumentDefaultsHelpFormatter) + parser.add_argument('-n', '--resource-name', default='PXI1Slot2,PXI1Slot3', help='The specified resource name shown in Measurement & Automation Explorer (MAX) for a digital pattern instrument, for example, PXI1Slot3, where PXI1Slot3 is an instrument resource name.') + parser.add_argument('-s', '--simulate', default='True', choices=['True', 'False'], help='Whether to run on simulated hardware or real hardware') + parser.add_argument('-c', '--channel-list', default='PinGroup1', help='List of channels or pins to measure.') + parser.add_argument('-e', '--tdr-endpoint-termination', default='OPEN', type=str.upper, choices=nidigital.TDREndpointTermination.__members__, help='Specifies whether TDR Channels are connected to an open circuit or a short to ground.') + parser.add_argument('-a', '--apply-offsets', default='True', choices=['True', 'False'], help='A Boolean that specifies whether to apply the measured TDR offsets.') + args = parser.parse_args(argsv) + + example(args.resource_name, + 'Simulate=1, DriverSetup=Model:6570' if args.simulate == 'True' else '', + args.channel_list, + nidigital.TDREndpointTermination[args.tdr_endpoint_termination], + args.apply_offsets == 'True') + + +def main(): + _main(sys.argv[1:]) + + +def test_main(): + _main([]) + _main(['--tdr-endpoint-termination', 'SHORT_TO_GROUND', '--apply-offsets', 'False']) + + +def test_example(): + resource_name = 'PXI1Slot2,PXI1Slot3' + options = {'simulate': True, 'driver_setup': {'Model': '6570'}, } + channel_list = 'PinGroup1' + + endpoint_termination = nidigital.TDREndpointTermination.OPEN + example(resource_name, options, channel_list, endpoint_termination, apply_offsets=True) + example(resource_name, options, channel_list, endpoint_termination, apply_offsets=False) + + endpoint_termination = nidigital.TDREndpointTermination.SHORT_TO_GROUND + example(resource_name, options, channel_list, endpoint_termination, apply_offsets=True) + example(resource_name, options, channel_list, endpoint_termination, apply_offsets=False) + + +if __name__ == '__main__': + main() From 086b8385d868e36dbc6506fc11bbc3fe81e71767 Mon Sep 17 00:00:00 2001 From: "Selvam, Divakar" Date: Tue, 3 Nov 2026 16:59:48 +0530 Subject: [PATCH 4/9] Rename TDR project to match example naming conventions Remove whitespace from the project filename so Make can resolve example dependencies. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../{TDR Measurement.digiproj => tdr_measurement.digiproj} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/nidigital/examples/tdr_measurement/{TDR Measurement.digiproj => tdr_measurement.digiproj} (100%) diff --git a/src/nidigital/examples/tdr_measurement/TDR Measurement.digiproj b/src/nidigital/examples/tdr_measurement/tdr_measurement.digiproj similarity index 100% rename from src/nidigital/examples/tdr_measurement/TDR Measurement.digiproj rename to src/nidigital/examples/tdr_measurement/tdr_measurement.digiproj From 64ac379eadf4a0474994c67629c21bf145c28949 Mon Sep 17 00:00:00 2001 From: karthikeswari-veerakumar Date: Wed, 4 Nov 2026 18:46:27 +0530 Subject: [PATCH 5/9] Remove self explanatory comments from the example Updated comments for clarity and improved help text in argument parser. --- src/nidigital/examples/tdr_measurement/tdr_measurement.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/nidigital/examples/tdr_measurement/tdr_measurement.py b/src/nidigital/examples/tdr_measurement/tdr_measurement.py index 1ea9c1107a..d4149667b1 100644 --- a/src/nidigital/examples/tdr_measurement/tdr_measurement.py +++ b/src/nidigital/examples/tdr_measurement/tdr_measurement.py @@ -11,11 +11,9 @@ def example(resource_name, options, channel_list, endpoint_termination, apply_of with nidigital.Session(resource_name=resource_name, options=options, reset_device=True) as session: try: - # Load the pin map (.pinmap) created using the Digital Pattern Editor pin_map_filename = os.path.join(directory, 'PinMap.pinmap') session.load_pin_map(pin_map_filename) - # Configure whether the TDR endpoint is open or shorted to ground session.tdr_endpoint_termination = endpoint_termination # Measure propagation delays and optionally apply the offsets to compensate for them. @@ -25,7 +23,6 @@ def example(resource_name, options, channel_list, endpoint_termination, apply_of print('TDR Offsets (seconds): {}'.format(offsets_in_seconds)) finally: - # Disconnect the selected channels using programmable onboard switching session.channels[channel_list].selected_function = nidigital.SelectedFunction.DISCONNECT print('Done TDR Measurement') @@ -34,7 +31,7 @@ def example(resource_name, options, channel_list, endpoint_termination, apply_of def _main(argsv): parser = argparse.ArgumentParser(description='Demonstrates how to use Time-Domain Reflectometry (TDR) to measure propagation delays through cables, connectors, and load boards. Use a 50 ohm controlled-impedance system and ensure an open or short exists at the selected TDR plane.', formatter_class=argparse.ArgumentDefaultsHelpFormatter) - parser.add_argument('-n', '--resource-name', default='PXI1Slot2,PXI1Slot3', help='The specified resource name shown in Measurement & Automation Explorer (MAX) for a digital pattern instrument, for example, PXI1Slot3, where PXI1Slot3 is an instrument resource name.') + parser.add_argument('-n', '--resource-name', default='PXI1Slot2,PXI1Slot3', help='The specified resource name of a digital pattern instrument, for example, PXI1Slot3, where PXI1Slot3 is an instrument resource name.') parser.add_argument('-s', '--simulate', default='True', choices=['True', 'False'], help='Whether to run on simulated hardware or real hardware') parser.add_argument('-c', '--channel-list', default='PinGroup1', help='List of channels or pins to measure.') parser.add_argument('-e', '--tdr-endpoint-termination', default='OPEN', type=str.upper, choices=nidigital.TDREndpointTermination.__members__, help='Specifies whether TDR Channels are connected to an open circuit or a short to ground.') From 25b8965dc826d5e84c13e17939e4961f2dca250c Mon Sep 17 00:00:00 2001 From: karthikeswari-veerakumar Date: Wed, 4 Nov 2026 18:48:58 +0530 Subject: [PATCH 6/9] Updated comment - removed comment self-explanatory line Co-authored-by: Avi <147520106+Avinash2Suresh@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b8369a6da7..56609db1e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -558,7 +558,7 @@ #### [nidigital] Unreleased - Added - (Common) Added `nitlsconfig[grpc]>=1.0.0a2` to the optional gRPC dependencies. - - Added the `tdr_measurement.py` example and its Digital Pattern Editor project. + - Added the `tdr_measurement.py` example. - Changed - Removed From 5ff15cc9e36b661b2d5a1e2b4883e79b02153f63 Mon Sep 17 00:00:00 2001 From: NI-velmurugan Date: Thu, 5 Nov 2026 15:45:42 +0000 Subject: [PATCH 7/9] Adding Source Waveform example in NI-Digital --- CHANGELOG.md | 1 + docs/nidigital/examples.rst | 9 ++ .../examples/source_waveform/Pattern.digipat | Bin 0 -> 5413 bytes .../source_waveform/PinLevels.digilevels | 15 +++ .../examples/source_waveform/PinMap.pinmap | 51 +++++++++ .../source_waveform/SourceWaveform.tdms | Bin 0 -> 1619 bytes .../source_waveform/Specifications.specs | 9 ++ .../source_waveform/Timing.digitiming | 23 ++++ .../nidigital_source_waveform.py | 100 ++++++++++++++++++ .../source_waveform/source_waveform.digiproj | 39 +++++++ 10 files changed, 247 insertions(+) create mode 100644 src/nidigital/examples/source_waveform/Pattern.digipat create mode 100644 src/nidigital/examples/source_waveform/PinLevels.digilevels create mode 100644 src/nidigital/examples/source_waveform/PinMap.pinmap create mode 100644 src/nidigital/examples/source_waveform/SourceWaveform.tdms create mode 100644 src/nidigital/examples/source_waveform/Specifications.specs create mode 100644 src/nidigital/examples/source_waveform/Timing.digitiming create mode 100644 src/nidigital/examples/source_waveform/nidigital_source_waveform.py create mode 100644 src/nidigital/examples/source_waveform/source_waveform.digiproj diff --git a/CHANGELOG.md b/CHANGELOG.md index 83d1d3267b..7fefe411b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -558,6 +558,7 @@ #### [nidigital] Unreleased - Added - (Common) Added `nitlsconfig[grpc]>=1.0.0a2` to the optional gRPC dependencies. + - Added the `nidigital_source_waveform.py` example. - Changed - Removed diff --git a/docs/nidigital/examples.rst b/docs/nidigital/examples.rst index b8c8cc689a..303dcff661 100644 --- a/docs/nidigital/examples.rst +++ b/docs/nidigital/examples.rst @@ -30,3 +30,12 @@ nidigital_ppmu_source_and_measure.py :encoding: utf8 :caption: `(nidigital_ppmu_source_and_measure.py) `_ +nidigital_source_waveform.py +---------------------------- + +.. literalinclude:: ../../src/nidigital/examples/source_waveform/nidigital_source_waveform.py + :language: python + :linenos: + :encoding: utf8 + :caption: `(nidigital_source_waveform.py) `_ + diff --git a/src/nidigital/examples/source_waveform/Pattern.digipat b/src/nidigital/examples/source_waveform/Pattern.digipat new file mode 100644 index 0000000000000000000000000000000000000000..0ee9d4fef983edd6c923bfa0c4eeb74e1a9f9bf2 GIT binary patch literal 5413 zcmcgwTXP#V6y9(x<&uWN3^Ux6;bDhPr*2vb<=zk%aGTOh?KV7-S=(}~va2<+T(@uG zjTv6~A^Zz|Ryp79IgXsz9dCj;6XjdW(sw>dM@L$>>dow>D2mLRQPd`c39isHO6@7x z3-o|ulT0hZm#OR|-fL%HrN^!wcAOb_lUsZXdy$GaJ}sJ~0)CQ_@8?e8BUvl(ezB~I z1gE^?L+BkYtsd_UN(CX$W#$n)#&ez;Y~|U&q`JFneE)%VLz0aFk)02@J}&Db!DC#n zQ3LLOCwZ7Vkf70tNsOIM@+B(~Jf`FWYH-I`lZ`SAF7c+F>bf(Jw3{B_N~lff1Q(;d z*)=|Y7VQ_TR`3|@`_!PGkL|uox_UQp*4X{KwwXNAQ)17pg<@qz1;P3Xm0J9xCK?wb zPEk20Ai?zpeT`T*gfKyLLtsp}YB5b?rmc_PqiRJ3O^(`gR58aJsz=uNy`gtBI>lYX z0c~)dAUvF#WM!|4N-< zf*^aFN-Y+$;^_yMj|NLzf7wiekn!#u8QgzNqil2*<_1R-R7u8@1Wr=7MP-7Tb`Av%bi?lf^sBM4?Bk8ny$MWHb^x-Ll+cnk_~!SJ*cqWL4A< zB4HePrIcMNUcTk#=w5MSh(~6aN=0&Q-VEs1={bzC!+kd=+@~CbiLS}4^?0mN4~yOrNCCy;L=|GfAp; z>2$5_Xu569jj7lfZ8$X`T;4H&@wBjS+4Zh-z*f zVFQPBSNMzY0H@$ literal 0 HcmV?d00001 diff --git a/src/nidigital/examples/source_waveform/PinLevels.digilevels b/src/nidigital/examples/source_waveform/PinLevels.digilevels new file mode 100644 index 0000000000..1908b117fa --- /dev/null +++ b/src/nidigital/examples/source_waveform/PinLevels.digilevels @@ -0,0 +1,15 @@ + + + + + + 0 + 3.3 + 0.8 + 2 + 0 + HighZ + + + + \ No newline at end of file diff --git a/src/nidigital/examples/source_waveform/PinMap.pinmap b/src/nidigital/examples/source_waveform/PinMap.pinmap new file mode 100644 index 0000000000..46d985a9f9 --- /dev/null +++ b/src/nidigital/examples/source_waveform/PinMap.pinmap @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/nidigital/examples/source_waveform/SourceWaveform.tdms b/src/nidigital/examples/source_waveform/SourceWaveform.tdms new file mode 100644 index 0000000000000000000000000000000000000000..4f85ffcdff1deaa6c969a39131b2c23dc77153ea GIT binary patch literal 1619 zcmeHHO-sW-5RD&IL{L!CYi_yq<6_T-C{~CTQtdG;$=VJyA8fYv>Oa>vX%^N(iQ=^b z!`sg8yf?ee%p{1iBgb**0uE#|xQ8`+?+bQ_1$!pH-QL$8soQexlM{)z>w2n!!^{*zbxRh zN!h{f1?(=lZ=Sg4*rKsxin46R#R-UfRfseZm9|wzwT9yuY*E>`$@-ZdFqnmQ!BqdzGNJ6} bRs2T8V2cRmsr_7UQdP~Y?_g)p?RWd%nF`^h literal 0 HcmV?d00001 diff --git a/src/nidigital/examples/source_waveform/Specifications.specs b/src/nidigital/examples/source_waveform/Specifications.specs new file mode 100644 index 0000000000..65c615cfd6 --- /dev/null +++ b/src/nidigital/examples/source_waveform/Specifications.specs @@ -0,0 +1,9 @@ + + +
+ + 1 µs + +
+ +
\ No newline at end of file diff --git a/src/nidigital/examples/source_waveform/Timing.digitiming b/src/nidigital/examples/source_waveform/Timing.digitiming new file mode 100644 index 0000000000..b5908eabfb --- /dev/null +++ b/src/nidigital/examples/source_waveform/Timing.digitiming @@ -0,0 +1,23 @@ + + + + + + timing.period + + + + 0 ns + timing.period / 2 + timing.period + + + (3 * timing.period) / 4 + + Pattern + + + + + + \ No newline at end of file diff --git a/src/nidigital/examples/source_waveform/nidigital_source_waveform.py b/src/nidigital/examples/source_waveform/nidigital_source_waveform.py new file mode 100644 index 0000000000..266d731ca5 --- /dev/null +++ b/src/nidigital/examples/source_waveform/nidigital_source_waveform.py @@ -0,0 +1,100 @@ +#!/usr/bin/python + +import argparse +import nidigital +import os +import sys + + +def example(resource_name, options, source_waveform_type='PARALLEL', data_mapping='BROADCAST', waveform_name='new_waveform', start_label='new_pattern', + parallel_channel_list='PinGroup1', serial_channel_list='DUTPin1', sample_width=32, bit_order='MSB', waveform_file=None, write_waveform_data=True): + + with nidigital.Session(resource_name=resource_name, options=options) as session: + + dir = os.path.join(os.path.dirname(__file__)) + if waveform_file is None: + waveform_file = os.path.join(dir, 'SourceWaveform.tdms') + + session.load_pin_map(os.path.join(dir, 'PinMap.pinmap')) + + spec_filename = os.path.join(dir, 'Specifications.specs') + levels_filename = os.path.join(dir, 'PinLevels.digilevels') + timing_filename = os.path.join(dir, 'Timing.digitiming') + session.load_specifications_levels_and_timing(spec_filename, levels_filename, timing_filename) + + session.apply_levels_and_timing(levels_filename, timing_filename) + + session.load_pattern(os.path.join(dir, 'Pattern.digipat')) + + mapping = nidigital.SourceDataMapping[data_mapping] + + # Configure the source waveform type + if source_waveform_type == 'PARALLEL': + session.pins[parallel_channel_list].create_source_waveform_parallel(waveform_name, mapping) + elif source_waveform_type == 'SERIAL': + session.pins[serial_channel_list].create_source_waveform_serial(waveform_name, mapping, sample_width, nidigital.BitOrder[bit_order]) + elif source_waveform_type == 'TDMS': + # Waveform configuration and data are read from the TDMS file + session.create_source_waveform_from_file_tdms(waveform_name, waveform_file, write_waveform_data) + + # Write the source waveform data + if source_waveform_type != 'TDMS': + # Placeholder ramp data for illustration; replace with your own waveform samples + sample_count = 2 ** min(sample_width, 8) if source_waveform_type == 'SERIAL' else 256 + samples = [i % sample_count for i in range(sample_count)] + if mapping == nidigital.SourceDataMapping.BROADCAST: + session.write_source_waveform_broadcast(waveform_name, samples) + else: + # Site-unique data is a dict of site number to samples; both sites use the same placeholder data here + session.write_source_waveform_site_unique(waveform_name, {0: samples, 1: samples}) + + print('Start bursting pattern') + session.burst_pattern(start_label=start_label) + + session.selected_function = nidigital.SelectedFunction.DISCONNECT + print('Done bursting pattern') + + +def _main(argsv): + parser = argparse.ArgumentParser(description='Demonstrates how to configure, write, and burst a source waveform using NI-Digital source memory.', formatter_class=argparse.ArgumentDefaultsHelpFormatter) + parser.add_argument('-n', '--resource-name', default='PXI1Slot2,PXI1Slot3', help='The specified resource name shown in Measurement & Automation Explorer (MAX) for a digital pattern instrument, for example, PXI1Slot3, where PXI1Slot3 is an instrument resource name.') + parser.add_argument('-s', '--simulate', default='True', choices=['True', 'False'], help='Whether to run on simulated hardware or real hardware') + parser.add_argument('-w', '--waveform-name', default='new_waveform', help='The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern.') + parser.add_argument('-l', '--start-label', default='new_pattern', help='Pattern name or exported pattern label from which to start bursting the pattern.') + parser.add_argument('-d', '--data-mapping', default='BROADCAST', choices=nidigital.SourceDataMapping.__members__.keys(), type=str.upper, help='Parameter that specifies how to map data on multiple sites.') + parser.add_argument('-t', '--source-waveform-type', default='PARALLEL', choices=['PARALLEL', 'SERIAL', 'TDMS'], type=str.upper, help='Type of source waveform to configure.') + parser.add_argument('--parallel-channel-list', default='PinGroup1', help='Pins that source data for a parallel waveform.') + parser.add_argument('--serial-channel-list', default='DUTPin1', help='Pins that source data for a serial waveform.') + parser.add_argument('--sample-width', default=32, type=int, help='Width in bits of each serial sample. Valid values are between 1 and 32.') + parser.add_argument('--bit-order', default='MSB', choices=nidigital.BitOrder.__members__.keys(), type=str.upper, help='Order in which to shift the bits.') + parser.add_argument('--waveform-file', default=None, help='Absolute file path to the load source waveform file (.tdms). Defaults to SourceWaveform.tdms next to this example.') + parser.add_argument('--write-waveform-data', default='True', choices=['True', 'False'], help='A Boolean that writes waveform data to source memory if True and the waveform data is in the file.') + args = parser.parse_args(argsv) + + example(args.resource_name, + 'Simulate=1, DriverSetup=Model:6571' if args.simulate == 'True' else '', + args.source_waveform_type, args.data_mapping, args.waveform_name, args.start_label, + args.parallel_channel_list, args.serial_channel_list, args.sample_width, args.bit_order, + args.waveform_file, args.write_waveform_data == 'True') + + +def main(): + _main(sys.argv[1:]) + + +def test_main(): + _main([]) + _main(['--source-waveform-type', 'SERIAL', '--data-mapping', 'SITE_UNIQUE']) + _main(['--source-waveform-type', 'TDMS']) + + +def test_example(): + resource_name = 'PXI1Slot2,PXI1Slot3' + options = {'simulate': True, 'driver_setup': {'Model': '6571'}, } + example(resource_name, options) + example(resource_name, options, 'SERIAL', 'SITE_UNIQUE') + example(resource_name, options, 'TDMS') + + +if __name__ == '__main__': + main() diff --git a/src/nidigital/examples/source_waveform/source_waveform.digiproj b/src/nidigital/examples/source_waveform/source_waveform.digiproj new file mode 100644 index 0000000000..971b8ff9b9 --- /dev/null +++ b/src/nidigital/examples/source_waveform/source_waveform.digiproj @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From b151b5e8b7604a4af3dfd2d50237b939146de0b8 Mon Sep 17 00:00:00 2001 From: NI-velmurugan Date: Thu, 5 Nov 2026 15:46:25 +0000 Subject: [PATCH 8/9] Revert "Adding Source Waveform example in NI-Digital" This reverts commit 5ff15cc9e36b661b2d5a1e2b4883e79b02153f63. --- CHANGELOG.md | 1 - docs/nidigital/examples.rst | 9 -- .../examples/source_waveform/Pattern.digipat | Bin 5413 -> 0 bytes .../source_waveform/PinLevels.digilevels | 15 --- .../examples/source_waveform/PinMap.pinmap | 51 --------- .../source_waveform/SourceWaveform.tdms | Bin 1619 -> 0 bytes .../source_waveform/Specifications.specs | 9 -- .../source_waveform/Timing.digitiming | 23 ---- .../nidigital_source_waveform.py | 100 ------------------ .../source_waveform/source_waveform.digiproj | 39 ------- 10 files changed, 247 deletions(-) delete mode 100644 src/nidigital/examples/source_waveform/Pattern.digipat delete mode 100644 src/nidigital/examples/source_waveform/PinLevels.digilevels delete mode 100644 src/nidigital/examples/source_waveform/PinMap.pinmap delete mode 100644 src/nidigital/examples/source_waveform/SourceWaveform.tdms delete mode 100644 src/nidigital/examples/source_waveform/Specifications.specs delete mode 100644 src/nidigital/examples/source_waveform/Timing.digitiming delete mode 100644 src/nidigital/examples/source_waveform/nidigital_source_waveform.py delete mode 100644 src/nidigital/examples/source_waveform/source_waveform.digiproj diff --git a/CHANGELOG.md b/CHANGELOG.md index 7fefe411b8..83d1d3267b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -558,7 +558,6 @@ #### [nidigital] Unreleased - Added - (Common) Added `nitlsconfig[grpc]>=1.0.0a2` to the optional gRPC dependencies. - - Added the `nidigital_source_waveform.py` example. - Changed - Removed diff --git a/docs/nidigital/examples.rst b/docs/nidigital/examples.rst index 303dcff661..b8c8cc689a 100644 --- a/docs/nidigital/examples.rst +++ b/docs/nidigital/examples.rst @@ -30,12 +30,3 @@ nidigital_ppmu_source_and_measure.py :encoding: utf8 :caption: `(nidigital_ppmu_source_and_measure.py) `_ -nidigital_source_waveform.py ----------------------------- - -.. literalinclude:: ../../src/nidigital/examples/source_waveform/nidigital_source_waveform.py - :language: python - :linenos: - :encoding: utf8 - :caption: `(nidigital_source_waveform.py) `_ - diff --git a/src/nidigital/examples/source_waveform/Pattern.digipat b/src/nidigital/examples/source_waveform/Pattern.digipat deleted file mode 100644 index 0ee9d4fef983edd6c923bfa0c4eeb74e1a9f9bf2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5413 zcmcgwTXP#V6y9(x<&uWN3^Ux6;bDhPr*2vb<=zk%aGTOh?KV7-S=(}~va2<+T(@uG zjTv6~A^Zz|Ryp79IgXsz9dCj;6XjdW(sw>dM@L$>>dow>D2mLRQPd`c39isHO6@7x z3-o|ulT0hZm#OR|-fL%HrN^!wcAOb_lUsZXdy$GaJ}sJ~0)CQ_@8?e8BUvl(ezB~I z1gE^?L+BkYtsd_UN(CX$W#$n)#&ez;Y~|U&q`JFneE)%VLz0aFk)02@J}&Db!DC#n zQ3LLOCwZ7Vkf70tNsOIM@+B(~Jf`FWYH-I`lZ`SAF7c+F>bf(Jw3{B_N~lff1Q(;d z*)=|Y7VQ_TR`3|@`_!PGkL|uox_UQp*4X{KwwXNAQ)17pg<@qz1;P3Xm0J9xCK?wb zPEk20Ai?zpeT`T*gfKyLLtsp}YB5b?rmc_PqiRJ3O^(`gR58aJsz=uNy`gtBI>lYX z0c~)dAUvF#WM!|4N-< zf*^aFN-Y+$;^_yMj|NLzf7wiekn!#u8QgzNqil2*<_1R-R7u8@1Wr=7MP-7Tb`Av%bi?lf^sBM4?Bk8ny$MWHb^x-Ll+cnk_~!SJ*cqWL4A< zB4HePrIcMNUcTk#=w5MSh(~6aN=0&Q-VEs1={bzC!+kd=+@~CbiLS}4^?0mN4~yOrNCCy;L=|GfAp; z>2$5_Xu569jj7lfZ8$X`T;4H&@wBjS+4Zh-z*f zVFQPBSNMzY0H@$ diff --git a/src/nidigital/examples/source_waveform/PinLevels.digilevels b/src/nidigital/examples/source_waveform/PinLevels.digilevels deleted file mode 100644 index 1908b117fa..0000000000 --- a/src/nidigital/examples/source_waveform/PinLevels.digilevels +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - 0 - 3.3 - 0.8 - 2 - 0 - HighZ - - - - \ No newline at end of file diff --git a/src/nidigital/examples/source_waveform/PinMap.pinmap b/src/nidigital/examples/source_waveform/PinMap.pinmap deleted file mode 100644 index 46d985a9f9..0000000000 --- a/src/nidigital/examples/source_waveform/PinMap.pinmap +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/nidigital/examples/source_waveform/SourceWaveform.tdms b/src/nidigital/examples/source_waveform/SourceWaveform.tdms deleted file mode 100644 index 4f85ffcdff1deaa6c969a39131b2c23dc77153ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1619 zcmeHHO-sW-5RD&IL{L!CYi_yq<6_T-C{~CTQtdG;$=VJyA8fYv>Oa>vX%^N(iQ=^b z!`sg8yf?ee%p{1iBgb**0uE#|xQ8`+?+bQ_1$!pH-QL$8soQexlM{)z>w2n!!^{*zbxRh zN!h{f1?(=lZ=Sg4*rKsxin46R#R-UfRfseZm9|wzwT9yuY*E>`$@-ZdFqnmQ!BqdzGNJ6} bRs2T8V2cRmsr_7UQdP~Y?_g)p?RWd%nF`^h diff --git a/src/nidigital/examples/source_waveform/Specifications.specs b/src/nidigital/examples/source_waveform/Specifications.specs deleted file mode 100644 index 65c615cfd6..0000000000 --- a/src/nidigital/examples/source_waveform/Specifications.specs +++ /dev/null @@ -1,9 +0,0 @@ - - -
- - 1 µs - -
- -
\ No newline at end of file diff --git a/src/nidigital/examples/source_waveform/Timing.digitiming b/src/nidigital/examples/source_waveform/Timing.digitiming deleted file mode 100644 index b5908eabfb..0000000000 --- a/src/nidigital/examples/source_waveform/Timing.digitiming +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - timing.period - - - - 0 ns - timing.period / 2 - timing.period - - - (3 * timing.period) / 4 - - Pattern - - - - - - \ No newline at end of file diff --git a/src/nidigital/examples/source_waveform/nidigital_source_waveform.py b/src/nidigital/examples/source_waveform/nidigital_source_waveform.py deleted file mode 100644 index 266d731ca5..0000000000 --- a/src/nidigital/examples/source_waveform/nidigital_source_waveform.py +++ /dev/null @@ -1,100 +0,0 @@ -#!/usr/bin/python - -import argparse -import nidigital -import os -import sys - - -def example(resource_name, options, source_waveform_type='PARALLEL', data_mapping='BROADCAST', waveform_name='new_waveform', start_label='new_pattern', - parallel_channel_list='PinGroup1', serial_channel_list='DUTPin1', sample_width=32, bit_order='MSB', waveform_file=None, write_waveform_data=True): - - with nidigital.Session(resource_name=resource_name, options=options) as session: - - dir = os.path.join(os.path.dirname(__file__)) - if waveform_file is None: - waveform_file = os.path.join(dir, 'SourceWaveform.tdms') - - session.load_pin_map(os.path.join(dir, 'PinMap.pinmap')) - - spec_filename = os.path.join(dir, 'Specifications.specs') - levels_filename = os.path.join(dir, 'PinLevels.digilevels') - timing_filename = os.path.join(dir, 'Timing.digitiming') - session.load_specifications_levels_and_timing(spec_filename, levels_filename, timing_filename) - - session.apply_levels_and_timing(levels_filename, timing_filename) - - session.load_pattern(os.path.join(dir, 'Pattern.digipat')) - - mapping = nidigital.SourceDataMapping[data_mapping] - - # Configure the source waveform type - if source_waveform_type == 'PARALLEL': - session.pins[parallel_channel_list].create_source_waveform_parallel(waveform_name, mapping) - elif source_waveform_type == 'SERIAL': - session.pins[serial_channel_list].create_source_waveform_serial(waveform_name, mapping, sample_width, nidigital.BitOrder[bit_order]) - elif source_waveform_type == 'TDMS': - # Waveform configuration and data are read from the TDMS file - session.create_source_waveform_from_file_tdms(waveform_name, waveform_file, write_waveform_data) - - # Write the source waveform data - if source_waveform_type != 'TDMS': - # Placeholder ramp data for illustration; replace with your own waveform samples - sample_count = 2 ** min(sample_width, 8) if source_waveform_type == 'SERIAL' else 256 - samples = [i % sample_count for i in range(sample_count)] - if mapping == nidigital.SourceDataMapping.BROADCAST: - session.write_source_waveform_broadcast(waveform_name, samples) - else: - # Site-unique data is a dict of site number to samples; both sites use the same placeholder data here - session.write_source_waveform_site_unique(waveform_name, {0: samples, 1: samples}) - - print('Start bursting pattern') - session.burst_pattern(start_label=start_label) - - session.selected_function = nidigital.SelectedFunction.DISCONNECT - print('Done bursting pattern') - - -def _main(argsv): - parser = argparse.ArgumentParser(description='Demonstrates how to configure, write, and burst a source waveform using NI-Digital source memory.', formatter_class=argparse.ArgumentDefaultsHelpFormatter) - parser.add_argument('-n', '--resource-name', default='PXI1Slot2,PXI1Slot3', help='The specified resource name shown in Measurement & Automation Explorer (MAX) for a digital pattern instrument, for example, PXI1Slot3, where PXI1Slot3 is an instrument resource name.') - parser.add_argument('-s', '--simulate', default='True', choices=['True', 'False'], help='Whether to run on simulated hardware or real hardware') - parser.add_argument('-w', '--waveform-name', default='new_waveform', help='The name to assign to the waveform. Use the waveform_name with source_start opcode in your pattern.') - parser.add_argument('-l', '--start-label', default='new_pattern', help='Pattern name or exported pattern label from which to start bursting the pattern.') - parser.add_argument('-d', '--data-mapping', default='BROADCAST', choices=nidigital.SourceDataMapping.__members__.keys(), type=str.upper, help='Parameter that specifies how to map data on multiple sites.') - parser.add_argument('-t', '--source-waveform-type', default='PARALLEL', choices=['PARALLEL', 'SERIAL', 'TDMS'], type=str.upper, help='Type of source waveform to configure.') - parser.add_argument('--parallel-channel-list', default='PinGroup1', help='Pins that source data for a parallel waveform.') - parser.add_argument('--serial-channel-list', default='DUTPin1', help='Pins that source data for a serial waveform.') - parser.add_argument('--sample-width', default=32, type=int, help='Width in bits of each serial sample. Valid values are between 1 and 32.') - parser.add_argument('--bit-order', default='MSB', choices=nidigital.BitOrder.__members__.keys(), type=str.upper, help='Order in which to shift the bits.') - parser.add_argument('--waveform-file', default=None, help='Absolute file path to the load source waveform file (.tdms). Defaults to SourceWaveform.tdms next to this example.') - parser.add_argument('--write-waveform-data', default='True', choices=['True', 'False'], help='A Boolean that writes waveform data to source memory if True and the waveform data is in the file.') - args = parser.parse_args(argsv) - - example(args.resource_name, - 'Simulate=1, DriverSetup=Model:6571' if args.simulate == 'True' else '', - args.source_waveform_type, args.data_mapping, args.waveform_name, args.start_label, - args.parallel_channel_list, args.serial_channel_list, args.sample_width, args.bit_order, - args.waveform_file, args.write_waveform_data == 'True') - - -def main(): - _main(sys.argv[1:]) - - -def test_main(): - _main([]) - _main(['--source-waveform-type', 'SERIAL', '--data-mapping', 'SITE_UNIQUE']) - _main(['--source-waveform-type', 'TDMS']) - - -def test_example(): - resource_name = 'PXI1Slot2,PXI1Slot3' - options = {'simulate': True, 'driver_setup': {'Model': '6571'}, } - example(resource_name, options) - example(resource_name, options, 'SERIAL', 'SITE_UNIQUE') - example(resource_name, options, 'TDMS') - - -if __name__ == '__main__': - main() diff --git a/src/nidigital/examples/source_waveform/source_waveform.digiproj b/src/nidigital/examples/source_waveform/source_waveform.digiproj deleted file mode 100644 index 971b8ff9b9..0000000000 --- a/src/nidigital/examples/source_waveform/source_waveform.digiproj +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file From 97b57c18a77d9aaebb3c4cf2ded2ab9d8be18ab4 Mon Sep 17 00:00:00 2001 From: NI-velmurugan Date: Mon, 16 Nov 2026 07:40:30 +0000 Subject: [PATCH 9/9] Renaming the example --- CHANGELOG.md | 2 +- docs/nidigital/examples.rst | 16 ++++++++-------- .../PinMap.pinmap | 0 .../nidigital_tdr_measurement.py} | 0 .../tdr_measurement.digiproj | 0 5 files changed, 9 insertions(+), 9 deletions(-) rename src/nidigital/examples/{tdr_measurement => nidigital_tdr_measurement}/PinMap.pinmap (100%) rename src/nidigital/examples/{tdr_measurement/tdr_measurement.py => nidigital_tdr_measurement/nidigital_tdr_measurement.py} (100%) rename src/nidigital/examples/{tdr_measurement => nidigital_tdr_measurement}/tdr_measurement.digiproj (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca14e5ae95..fdbdf8a2b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -559,7 +559,7 @@ - Added - (Common) Added `nitlsconfig[grpc]>=1.0.0a2` to the optional gRPC dependencies. - Added the `nidigital_load_sheets_and_burst.py` example. - - Added the `tdr_measurement.py` example. + - Added the `nidigital_tdr_measurement.py` example. - Changed - Removed diff --git a/docs/nidigital/examples.rst b/docs/nidigital/examples.rst index 348706e3d1..63c7c75db9 100644 --- a/docs/nidigital/examples.rst +++ b/docs/nidigital/examples.rst @@ -30,21 +30,21 @@ nidigital_load_sheets_and_burst.py :encoding: utf8 :caption: `(nidigital_load_sheets_and_burst.py) `_ -nidigital_ppmu_source_and_measure.py ------------------------------------- +nidigital_tdr_measurement.py +---------------------------- -.. literalinclude:: ../../src/nidigital/examples/ppmu_source_and_measure/nidigital_ppmu_source_and_measure.py +.. literalinclude:: ../../src/nidigital/examples/nidigital_tdr_measurement/nidigital_tdr_measurement.py :language: python :linenos: :encoding: utf8 - :caption: `(nidigital_ppmu_source_and_measure.py) `_ + :caption: `(nidigital_tdr_measurement.py) `_ -tdr_measurement.py ------------------- +nidigital_ppmu_source_and_measure.py +------------------------------------ -.. literalinclude:: ../../src/nidigital/examples/tdr_measurement/tdr_measurement.py +.. literalinclude:: ../../src/nidigital/examples/ppmu_source_and_measure/nidigital_ppmu_source_and_measure.py :language: python :linenos: :encoding: utf8 - :caption: `(tdr_measurement.py) `_ + :caption: `(nidigital_ppmu_source_and_measure.py) `_ diff --git a/src/nidigital/examples/tdr_measurement/PinMap.pinmap b/src/nidigital/examples/nidigital_tdr_measurement/PinMap.pinmap similarity index 100% rename from src/nidigital/examples/tdr_measurement/PinMap.pinmap rename to src/nidigital/examples/nidigital_tdr_measurement/PinMap.pinmap diff --git a/src/nidigital/examples/tdr_measurement/tdr_measurement.py b/src/nidigital/examples/nidigital_tdr_measurement/nidigital_tdr_measurement.py similarity index 100% rename from src/nidigital/examples/tdr_measurement/tdr_measurement.py rename to src/nidigital/examples/nidigital_tdr_measurement/nidigital_tdr_measurement.py diff --git a/src/nidigital/examples/tdr_measurement/tdr_measurement.digiproj b/src/nidigital/examples/nidigital_tdr_measurement/tdr_measurement.digiproj similarity index 100% rename from src/nidigital/examples/tdr_measurement/tdr_measurement.digiproj rename to src/nidigital/examples/nidigital_tdr_measurement/tdr_measurement.digiproj